Skip to main content

format_workspace_text_files

Function format_workspace_text_files 

Source
pub fn format_workspace_text_files(
    root: &Path,
    check: bool,
) -> Result<UnifiedFmtReport, Error>
Expand description

Recursively discovers and formats all supported non-Rust text files under root (or a single file).

§Arguments

  • &Path - Root workspace directory or individual file path.
  • bool - When true, verifies formatting without modifying disk and returns an error if changes are needed.

§Returns

  • Result<UnifiedFmtReport, io::Error> - Structured report of scanned and formatted files.