fix(rln): clippy error (#159)

This commit is contained in:
Aaryamann Challani 2023-05-06 18:30:58 +05:30 committed by GitHub
parent 2c4b399126
commit 584c2cf4c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -58,10 +58,7 @@ impl FromStr for PmtreeConfig {
let temporary = config["temporary"].as_bool();
let path = config["path"].as_str();
let path = match path {
Some(path) => Some(PathBuf::from(path)),
None => None,
};
let path = path.map(PathBuf::from);
let config = pm_tree::Config::new()
.temporary(temporary.unwrap_or(get_tmp()))