diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2025-02-06 03:14:26 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2025-02-06 03:14:26 +0000 |
commit | 48c436aab1e5587a155bc677d0481626c940e6a0 (patch) | |
tree | a3007da21d97951826a5a2518f01c4eb4728f200 /src/webdav_fs.rs | |
parent | Make symlinks into global fixtures (diff) | |
download | miniserve-48c436aab1e5587a155bc677d0481626c940e6a0.tar.gz miniserve-48c436aab1e5587a155bc677d0481626c940e6a0.zip |
Make clippy happy
Diffstat (limited to '')
-rw-r--r-- | src/webdav_fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webdav_fs.rs b/src/webdav_fs.rs index 63c9f94..cf434ba 100644 --- a/src/webdav_fs.rs +++ b/src/webdav_fs.rs @@ -25,7 +25,7 @@ impl RestrictedFs { /// true if any normal component of path either starts with dot or can't be turned into a str fn path_has_hidden_components(path: &DavPath) -> bool { path.as_pathbuf().components().any(|c| match c { - Component::Normal(name) => name.to_str().map_or(true, |s| s.starts_with('.')), + Component::Normal(name) => name.to_str().is_none_or(|s| s.starts_with('.')), _ => false, }) } |