From b4e632130aff76870816657fbf249332c622b97e Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 14 Jan 2024 23:58:01 +0800 Subject: [PATCH] skip vendored files from formatting --- rustfmt.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rustfmt.toml b/rustfmt.toml index a1d113005..f3b85c3e2 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -2,6 +2,9 @@ # - run this on Linux to fix Windows changing .rs files to +x: # `find . -name "*.rs" -exec chmod -x {} \;` +# Don't format these vendored-in files +ignore = ["libs/mass-storage/**"] + # I can't rely on contributors using .editorconfig newline_style = "Unix" # require the shorthand instead of it being optional