mirror of https://github.com/vacp2p/zerokit.git
fix(rln): clippy error (#159)
This commit is contained in:
parent
2c4b399126
commit
584c2cf4c0
|
@ -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()))
|
||||
|
|
Loading…
Reference in New Issue