This is an annoying issue.
When running cargo fmt --all -- from the command line, it behaves sometimes differently than when the pre-commit runs:
diff --git a/api/build.rs b/api/build.rs
index 4877b84..f7e777e 100644
--- a/api/build.rs
+++ b/api/build.rs
@@ -1,4 +1,4 @@
-use codegen::{compare_openapi_spec, SpecStatus};
+use codegen::{SpecStatus, compare_openapi_spec};
This is an annoying issue.
When running
cargo fmt --all --from the command line, it behaves sometimes differently than when the pre-commit runs: