Function format
Source pub fn format<P: AsRef<Path>>(file_path: P, write: bool) -> Result<bool>
Expand description
Format a file with the appropriate formatter
§Arguments
file_path - Path to the file to format
write - Whether to write the formatted output back to the file
§Returns
Ok(bool) - true if the file needed formatting, false if it was already formatted
Err - If formatting failed