Skip to content

Commit

Permalink
Ignore formatting for crates under third_party (#20390)
Browse files Browse the repository at this point in the history
This changes adds a patch to add brave's own third party crates path to
the list of rust paths to be ignored during formatting.
  • Loading branch information
cdesouza-chromium authored Oct 5, 2023
1 parent df411fa commit d393e00
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions patches/.rustfmt.toml.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/.rustfmt.toml b/.rustfmt.toml
index 0c2edf5faf0597654b5a806b4d6cf7e8efb8639e..74053342b622d657c06669b5922d1d684eab7f39 100644
--- a/.rustfmt.toml
+++ b/.rustfmt.toml
@@ -22,4 +22,5 @@ use_small_heuristics = "Max"
# Third party code is formatted upstream.
ignore = [
"third_party/rust/**/crate",
+ "brave/third_party/rust/**/crate",
]

0 comments on commit d393e00

Please sign in to comment.