Skip to main content

FlycheckRunner

Trait FlycheckRunner 

Source
pub trait FlycheckRunner: Send + Sync {
    // Required method
    fn check(
        &self,
        source: &str,
        workspace_key: &str,
    ) -> Option<Vec<FlycheckFinding>>;
}
Expand description

The check engine seam. The real runner shells out to cargo; tests inject mocks so the server’s merge/staleness/dedup behavior is provable without a toolchain.

Required Methods§

Source

fn check( &self, source: &str, workspace_key: &str, ) -> Option<Vec<FlycheckFinding>>

None = the toolchain is unavailable (degrade silently); Some(findings) = the check ran.

Implementors§