Make filename method private

This commit is contained in:
sharkdp authored and David Peter committed 2020-04-21 08:57:15 +02:00
1 parent 2ad1848859
commit 051dd4ba87
1 file changed
+1 -1
+1 -1
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)
}
}