Skip to content

Commit fac465e

Browse files
committed
Fix clippy warning
1 parent d7471f6 commit fac465e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bdk_cli.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ enum ReplSubCommand {
9191
}
9292

9393
/// prepare bdk_cli home and wallet directory
94-
fn prepare_home_wallet_dir(wallet_name: &String) -> Result<PathBuf, Error> {
94+
fn prepare_home_wallet_dir(wallet_name: &str) -> Result<PathBuf, Error> {
9595
let mut dir = PathBuf::new();
9696
dir.push(
9797
&dirs_next::home_dir().ok_or_else(|| Error::Generic("home dir not found".to_string()))?,
@@ -114,7 +114,7 @@ fn prepare_home_wallet_dir(wallet_name: &String) -> Result<PathBuf, Error> {
114114
}
115115

116116
/// Prepare wallet database directory
117-
fn prepare_wallet_db_dir(wallet_name: &String) -> Result<PathBuf, Error> {
117+
fn prepare_wallet_db_dir(wallet_name: &str) -> Result<PathBuf, Error> {
118118
let mut db_dir = prepare_home_wallet_dir(wallet_name)?;
119119

120120
#[cfg(feature = "key-value-db")]
@@ -134,7 +134,7 @@ fn prepare_wallet_db_dir(wallet_name: &String) -> Result<PathBuf, Error> {
134134

135135
/// Prepare blockchain data directory (for compact filters)
136136
#[cfg(feature = "compact_filters")]
137-
fn prepare_bc_dir(wallet_name: &String) -> Result<PathBuf, Error> {
137+
fn prepare_bc_dir(wallet_name: &str) -> Result<PathBuf, Error> {
138138
let mut bc_dir = prepare_home_wallet_dir(wallet_name)?;
139139

140140
bc_dir.push("compact_filters");

0 commit comments

Comments
 (0)