diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-09-08 15:04:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 15:04:45 +0100 |
commit | 17276a1df9fb4926f813d2b8a5ac2a2a8bf289eb (patch) | |
tree | 7e511b1536692ab82c7ccc7f424cb572c211217e /cli/tools/fmt.rs | |
parent | 14522fc62886b95431f62d5bd21d70cfaac780ee (diff) |
fix: empty include in config file excludes all (#20404)
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r-- | cli/tools/fmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index 5ab82795c..284f20dda 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -153,7 +153,7 @@ fn collect_fmt_files(files: &FilesConfig) -> Result<Vec<PathBuf>, AnyError> { .ignore_node_modules() .ignore_vendor_folder() .add_ignore_paths(&files.exclude) - .collect_files(&files.include) + .collect_files(files.include.as_deref()) } /// Formats markdown (using <https://github.com/dprint/dprint-plugin-markdown>) and its code blocks |