Skip to content

Commit 650da8c

Browse files
committed
chore: fix nightly lints
I develop on recent nightly versions and they added some annoying lints. Fixing them here before a later CI fails.
1 parent 65cd4cd commit 650da8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bdk-ffi/src/error.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ impl From<BdkBip32Error> for Bip32Error {
888888
Bip32Error::InvalidPublicKeyHexLength { length: len as u32 }
889889
}
890890
_ => Bip32Error::UnknownError {
891-
error_message: format!("Unhandled error: {:?}", error),
891+
error_message: format!("Unhandled error: {error:?}"),
892892
},
893893
}
894894
}
@@ -908,7 +908,7 @@ impl From<BdkBip39Error> for Bip39Error {
908908
},
909909
BdkBip39Error::InvalidChecksum => Bip39Error::InvalidChecksum,
910910
BdkBip39Error::AmbiguousLanguages(info) => Bip39Error::AmbiguousLanguages {
911-
languages: format!("{:?}", info),
911+
languages: format!("{info:?}"),
912912
},
913913
}
914914
}
@@ -947,7 +947,7 @@ impl From<BdkCreateTxError> for CreateTxError {
947947
},
948948
BdkCreateTxError::SpendingPolicyRequired(kind) => {
949949
CreateTxError::SpendingPolicyRequired {
950-
kind: format!("{:?}", kind),
950+
kind: format!("{kind:?}"),
951951
}
952952
}
953953
BdkCreateTxError::Version0 => CreateTxError::Version0,
@@ -1099,15 +1099,15 @@ impl From<BdkDescriptorError> for DescriptorError {
10991099
impl From<BdkDescriptorKeyParseError> for DescriptorKeyError {
11001100
fn from(err: BdkDescriptorKeyParseError) -> DescriptorKeyError {
11011101
DescriptorKeyError::Parse {
1102-
error_message: format!("DescriptorKeyError error: {:?}", err),
1102+
error_message: format!("DescriptorKeyError error: {err:?}"),
11031103
}
11041104
}
11051105
}
11061106

11071107
impl From<BdkBip32Error> for DescriptorKeyError {
11081108
fn from(error: BdkBip32Error) -> DescriptorKeyError {
11091109
DescriptorKeyError::Bip32 {
1110-
error_message: format!("BIP32 derivation error: {:?}", error),
1110+
error_message: format!("BIP32 derivation error: {error:?}"),
11111111
}
11121112
}
11131113
}

0 commit comments

Comments
 (0)