Make filename method private

This commit is contained in:
sharkdp 2020-04-11 19:37:11 +02:00 committed by David Peter
parent 2ad1848859
commit 051dd4ba87
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ impl<'a> OrdinaryFile<'a> {
}
}
pub fn filename(&self) -> &'a OsStr {
pub(crate) fn filename(&self) -> &'a OsStr {
self.user_provided_name.unwrap_or_else(|| self.path)
}
}