Skip to main content

format_file

Function format_file 

Source
pub fn format_file(file_path: &str, working_dir: &Path) -> bool
Expand description

Run the appropriate formatter on a file.

Returns true if formatting was applied, false otherwise. Never panics or returns errors — formatting is best-effort.