From: Steve Myers Date: Sat, 19 Feb 2022 03:34:20 +0000 (-0800) Subject: Fix clippy warning X-Git-Tag: v0.5.0~3^2~2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.OddLengthStringError.html?a=commitdiff_plain;h=fac465ed9f141c73ea876319064782be90d3a37d;p=bdk-cli Fix clippy warning --- diff --git a/src/bdk_cli.rs b/src/bdk_cli.rs index 1e0ee1a..7150666 100644 --- a/src/bdk_cli.rs +++ b/src/bdk_cli.rs @@ -91,7 +91,7 @@ enum ReplSubCommand { } /// prepare bdk_cli home and wallet directory -fn prepare_home_wallet_dir(wallet_name: &String) -> Result { +fn prepare_home_wallet_dir(wallet_name: &str) -> Result { let mut dir = PathBuf::new(); dir.push( &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 { } /// Prepare wallet database directory -fn prepare_wallet_db_dir(wallet_name: &String) -> Result { +fn prepare_wallet_db_dir(wallet_name: &str) -> Result { let mut db_dir = prepare_home_wallet_dir(wallet_name)?; #[cfg(feature = "key-value-db")] @@ -134,7 +134,7 @@ fn prepare_wallet_db_dir(wallet_name: &String) -> Result { /// Prepare blockchain data directory (for compact filters) #[cfg(feature = "compact_filters")] -fn prepare_bc_dir(wallet_name: &String) -> Result { +fn prepare_bc_dir(wallet_name: &str) -> Result { let mut bc_dir = prepare_home_wallet_dir(wallet_name)?; bc_dir.push("compact_filters");