mirror of
https://github.com/vacp2p/zerokit.git
synced 2025-01-09 13:56:05 +00:00
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 temporary = config["temporary"].as_bool();
|
||||||
let path = config["path"].as_str();
|
let path = config["path"].as_str();
|
||||||
let path = match path {
|
let path = path.map(PathBuf::from);
|
||||||
Some(path) => Some(PathBuf::from(path)),
|
|
||||||
None => None,
|
|
||||||
};
|
|
||||||
|
|
||||||
let config = pm_tree::Config::new()
|
let config = pm_tree::Config::new()
|
||||||
.temporary(temporary.unwrap_or(get_tmp()))
|
.temporary(temporary.unwrap_or(get_tmp()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user