]> git.lizzy.rs Git - rust.git/blobdiff - Configurations.md
Simplify IgnoreList
[rust.git] / Configurations.md
index 0b2048958e1bc77b702446ba906a4ae61e2dd990..2b9cd13ad3368c012ea174d8c3cdd356fcecf955 100644 (file)
@@ -2149,8 +2149,7 @@ Skip formatting the specified files and directories.
 If you want to ignore specific files, put the following to your config file:
 
 ```toml
-[ignore]
-files = [
+ignore = [
     "src/types.rs",
     "src/foo/bar.rs",
 ]
@@ -2159,8 +2158,7 @@ files = [
 If you want to ignore every file under `examples/`, put the following to your config file:
 
 ```toml
-[ignore]
-directories = [
+ignore [
     "examples",
 ]
 ```