Skip to content

Commit

Permalink
appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ahti committed May 14, 2024
1 parent d378d6c commit 6f082ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webdav_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ impl RestrictedFs {
let local = LocalFs::new(base, false, false, false);
Box::new({
RestrictedFs {
local: local,
allow_hidden: allow_hidden,
local,
allow_hidden,
}
})
}
}

fn check_path(path: &DavPath) -> bool {
path.as_pathbuf().components().all(|c| match c {
Component::Normal(name) => name.to_str().map_or(false, |s| !s.starts_with(".")),
Component::Normal(name) => name.to_str().map_or(false, |s| !s.starts_with('.')),
_ => true,
})
}
Expand Down

0 comments on commit 6f082ad

Please sign in to comment.