|
@@ -46,7 +46,6 @@ impl Autoformat {
|
|
|
|
|
|
// Default to formatting the project
|
|
// Default to formatting the project
|
|
if raw.is_none() && file.is_none() {
|
|
if raw.is_none() && file.is_none() {
|
|
- println!("format project !");
|
|
|
|
if let Err(e) = autoformat_project(check, split_line_attributes, do_rustfmt).await {
|
|
if let Err(e) = autoformat_project(check, split_line_attributes, do_rustfmt).await {
|
|
eprintln!("error formatting project: {}", e);
|
|
eprintln!("error formatting project: {}", e);
|
|
exit(1);
|
|
exit(1);
|
|
@@ -131,8 +130,6 @@ fn format_file(path: impl AsRef<Path>, indent: IndentOptions, do_rustfmt: bool)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- println!("at {} : {:#?}", path.as_ref().display(), &contents);
|
|
|
|
-
|
|
|
|
let edits = dioxus_autofmt::fmt_file(&contents, indent);
|
|
let edits = dioxus_autofmt::fmt_file(&contents, indent);
|
|
let len = edits.len();
|
|
let len = edits.len();
|
|
|
|
|