1
Fork 0

rustdoc: Make some pub items crate-private

They don't need to be `pub`. Making them crate-private improves code
clarity and `dead_code` linting.
This commit is contained in:
Noah Lev 2022-01-21 18:41:34 -08:00
parent 17d29dcdce
commit fc16b815cc
4 changed files with 14 additions and 14 deletions

View file

@ -175,7 +175,7 @@ crate struct StylePath {
}
impl StylePath {
pub fn basename(&self) -> Result<String, Error> {
crate fn basename(&self) -> Result<String, Error> {
Ok(try_none!(try_none!(self.path.file_stem(), &self.path).to_str(), &self.path).to_string())
}
}