Skip to main content

format_file

Function format_file 

Source
pub fn format_file(path: &str, max_width: usize) -> Result<String>
Expand description

Format a file on disk, returning the formatted text. Auto-detects format from the file extension.