]> git.lizzy.rs Git - rust.git/blobdiff - src/ignore_path.rs
Fixed comment dropped between & and type issue (#4482)
[rust.git] / src / ignore_path.rs
index 844ea427f49556823a679ec082ed4dbbe4845241..d8974e12b8f5f4fe07742214ec1f28f2e41ddae2 100644 (file)
@@ -2,12 +2,12 @@
 
 use crate::config::{FileName, IgnoreList};
 
-pub struct IgnorePathSet {
+pub(crate) struct IgnorePathSet {
     ignore_set: gitignore::Gitignore,
 }
 
 impl IgnorePathSet {
-    pub fn from_ignore_list(ignore_list: &IgnoreList) -> Result<Self, ignore::Error> {
+    pub(crate) fn from_ignore_list(ignore_list: &IgnoreList) -> Result<Self, ignore::Error> {
         let mut ignore_builder = gitignore::GitignoreBuilder::new(ignore_list.rustfmt_toml_path());
 
         for ignore_path in ignore_list {
@@ -19,7 +19,7 @@ pub fn from_ignore_list(ignore_list: &IgnoreList) -> Result<Self, ignore::Error>
         })
     }
 
-    pub fn is_match(&self, file_name: &FileName) -> bool {
+    pub(crate) fn is_match(&self, file_name: &FileName) -> bool {
         match file_name {
             FileName::Stdin => false,
             FileName::Real(p) => self