We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
format_code_from_path
1 parent f1c0a28 commit 55348f6Copy full SHA for 55348f6
check_diff/src/lib.rs
@@ -299,6 +299,10 @@ fn dynamic_library_path_env_var_name() -> &'static str {
299
}
300
301
impl CodeFormatter for RustfmtRunner {
302
+ // When rustfmt knows the file path it's able to skip formatting for files listed in the repo's
303
+ // rustfmt.toml `ignore` list. For example, this helps us skip files in r-l/rust that have
304
+ // been explicitly skipped because trying to format them causes rustfmt to hang or rustfmt.
305
+ // doesn't do a good job at formatting those files.
306
fn format_code_from_path<T: AsRef<str>, P: AsRef<Path>>(
307
&self,
308
path: P,
0 commit comments