Skip to content

Commit

Permalink
Merge pull request #130 from kpcyrd/edition-2021
Browse files Browse the repository at this point in the history
Update Rust edition to 2021
  • Loading branch information
kpcyrd authored Jan 7, 2024
2 parents 010b419 + 37796ea commit d1bb4fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repository = "https://github.com/kpcyrd/sniffglue"
categories = ["command-line-utilities"]
readme = "README.md"
exclude = ["pcaps/**/*", "**/*.pcap"]
edition = "2018"
edition = "2021"

[package.metadata.deb]
license-file = [ "LICENSE" ]
Expand Down
8 changes: 1 addition & 7 deletions src/sandbox/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@ pub fn find() -> Option<String> {
}
};

for config_path in paths {
if Path::new(&config_path).exists() {
return Some(config_path);
}
}

None
paths.into_iter().find(|p| Path::new(&p).exists())
}

pub fn load(path: &str) -> Result<Config> {
Expand Down

0 comments on commit d1bb4fe

Please sign in to comment.