Skip to main content

format_rust

Function format_rust 

Source
pub fn format_rust(
    root: &Path,
    files: &[String],
    check: bool,
) -> Result<FormatOutcome>
Expand description

Format Rust files via cargo fmt (runs against the whole workspace when files is empty).

§Errors

Never — failures are reported via FormatOutcome::Failed(stderr).