We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1417c2 commit 2e62376Copy full SHA for 2e62376
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