diff options
author | Martin Fischer <martin@push-f.com> | 2022-10-28 14:03:05 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-10-28 14:03:05 +0200 |
commit | 95aa0534320a6b077a6063b612a099dd3d9d4145 (patch) | |
tree | cd6e0ab7de62bb8b53a2afed9a184f3adcb9e5f2 /src/shares.rs | |
parent | 6d2b42da54335682bf5ba25277323daafca16808 (diff) |
refactor: some linter fixes
Diffstat (limited to 'src/shares.rs')
-rw-r--r-- | src/shares.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shares.rs b/src/shares.rs index 4017e1f..a6831dc 100644 --- a/src/shares.rs +++ b/src/shares.rs @@ -40,7 +40,7 @@ pub struct AccessRule { pub end: usize, } -#[derive(PartialEq, Debug)] +#[derive(PartialEq, Eq, Debug)] pub enum AccessMode { ReadAndWrite, ReadOnly, @@ -148,7 +148,7 @@ pub fn parse_shares_txt(text: &str) -> Result<Shares, String> { // normalize path let mut comps = Vec::new(); - for comp in Utf8Path::new(&*path).components() { + for comp in Utf8Path::new(path).components() { match comp { Utf8Component::Normal(name) => comps.push(name), Utf8Component::ParentDir => { |