From d393e00da35296f2e85b6650fa78a85dae8e4244 Mon Sep 17 00:00:00 2001 From: cdesouza-chromium Date: Thu, 5 Oct 2023 14:41:52 +0100 Subject: [PATCH] Ignore formatting for crates under `third_party` (#20390) 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. --- patches/.rustfmt.toml.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 patches/.rustfmt.toml.patch diff --git a/patches/.rustfmt.toml.patch b/patches/.rustfmt.toml.patch new file mode 100644 index 000000000000..93c751f79638 --- /dev/null +++ b/patches/.rustfmt.toml.patch @@ -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", + ]