pub fn run(args: &FormatArgs) -> Result<FormatResult>Expand description
Run the format command: format files in place, or check with --check.
Returns Ok(FormatResult) on success. In --check mode, unformatted
files are reported as errors (diffs printed to stderr by the caller).
§Errors
Returns an error if file discovery fails (e.g. invalid glob pattern or I/O error).