We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7271537 commit cfd3138Copy full SHA for cfd3138
1 file changed
dash-spv/src/storage/peers.rs
@@ -89,7 +89,7 @@ impl PeerStorage for PersistentPeerStorage {
89
90
let peers_file_parent = peers_file
91
.parent()
92
- .ok_or(StorageError::NotFound(format!("peers_file doesn't have a parent")))?;
+ .ok_or(StorageError::NotFound("peers_file doesn't have a parent".to_string()))?;
93
94
tokio::fs::create_dir_all(peers_file_parent).await?;
95
@@ -138,7 +138,7 @@ impl PeerStorage for PersistentPeerStorage {
138
139
let reputation_file_parent = reputation_file
140
141
- .ok_or(StorageError::NotFound(format!("reputation_file doesn't have a parent")))?;
+ .ok_or(StorageError::NotFound("reputation_file doesn't have a parent".to_string()))?;
142
143
tokio::fs::create_dir_all(reputation_file_parent).await?;
144
0 commit comments