Skip to content

Commit 2e62376

Browse files
committed
clippy warning fixed
1 parent a1417c2 commit 2e62376

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dash-spv/src/storage/peers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl PeerStorage for PersistentPeerStorage {
8989

9090
let peers_file_parent = peers_file
9191
.parent()
92-
.ok_or(StorageError::NotFound(format!("peers_file doesn't have a parent")))?;
92+
.ok_or(StorageError::NotFound("peers_file doesn't have a parent".to_string()))?;
9393

9494
tokio::fs::create_dir_all(peers_file_parent).await?;
9595

@@ -138,7 +138,7 @@ impl PeerStorage for PersistentPeerStorage {
138138

139139
let reputation_file_parent = reputation_file
140140
.parent()
141-
.ok_or(StorageError::NotFound(format!("reputation_file doesn't have a parent")))?;
141+
.ok_or(StorageError::NotFound("reputation_file doesn't have a parent".to_string()))?;
142142

143143
tokio::fs::create_dir_all(reputation_file_parent).await?;
144144

0 commit comments

Comments
 (0)