//! Reading review's state without reaching into its tables.
//!
//! The pipeline needs two facts about a candidate: the row itself, and whether
//! a human approved it. It used to fetch them by calling through review's
//! re-exports of db's query functions, which meant the step machine knew the
//! shape of review's storage. These two calls are the whole of what it needs.
use crate::db::{self, approvals, model::CandidateRow, Db};
use crate::error::Result;
pub fn candidate(db: &Db, id: i64) -> Result