Skip to content

Commit 38ff60a

Browse files
fix: clippy warnings
1 parent 74bd1fc commit 38ff60a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

bdk-ffi/src/bdk.udl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ interface AddressError {
6363
ExcessiveScriptSize();
6464
UnrecognizedScript();
6565
NetworkValidation(Network required, Network found, string address);
66-
OtherAddressError();
66+
OtherAddressErr();
6767
};
6868

6969
[Error]
@@ -74,7 +74,7 @@ interface TransactionError {
7474
NonMinimalVarInt();
7575
ParseFailed();
7676
UnsupportedSegwitFlag(u8 flag);
77-
OtherTransactionError();
77+
OtherTransactionErr();
7878
};
7979

8080
[Error]
@@ -109,7 +109,7 @@ interface ExtractTxError {
109109
AbsurdFeeRate(u64 fee_rate);
110110
MissingInputValue();
111111
SendingTooMuch();
112-
OtherExtractTransactionError();
112+
OtherExtractTxErr();
113113
};
114114

115115
// ------------------------------------------------------------------------

bdk-ffi/src/error.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub enum AddressError {
156156

157157
// This is required because the bdk::bitcoin::address::Error is non-exhaustive
158158
#[error("other address error")]
159-
OtherAddressError,
159+
OtherAddressErr,
160160
}
161161

162162
// Mapping https://docs.rs/bitcoin/latest/src/bitcoin/consensus/encode.rs.html#40-63
@@ -182,7 +182,7 @@ pub enum TransactionError {
182182

183183
// This is required because the bdk::bitcoin::consensus::encode::Error is non-exhaustive
184184
#[error("other transaction error")]
185-
OtherTransactionError,
185+
OtherTransactionErr,
186186
}
187187

188188
#[derive(Debug, thiserror::Error)]
@@ -247,7 +247,7 @@ pub enum ExtractTxError {
247247
#[error(
248248
"this error is required because the bdk::bitcoin::psbt::ExtractTxError is non-exhaustive"
249249
)]
250-
OtherExtractTransactionError,
250+
OtherExtractTxErr,
251251
}
252252

253253
impl From<BdkDescriptorError> for DescriptorError {
@@ -439,7 +439,7 @@ impl From<bdk::bitcoin::address::Error> for AddressError {
439439
found,
440440
address: format!("{:?}", address),
441441
},
442-
_ => AddressError::OtherAddressError,
442+
_ => AddressError::OtherAddressErr,
443443
}
444444
}
445445
}
@@ -455,7 +455,7 @@ impl From<ParseError> for AddressError {
455455
ParseError::WitnessProgram(e) => AddressError::WitnessProgram {
456456
error_message: e.to_string(),
457457
},
458-
_ => AddressError::OtherAddressError,
458+
_ => AddressError::OtherAddressErr,
459459
}
460460
}
461461
}
@@ -480,7 +480,7 @@ impl From<bdk::bitcoin::consensus::encode::Error> for TransactionError {
480480
bdk::bitcoin::consensus::encode::Error::UnsupportedSegwitFlag(flag) => {
481481
TransactionError::UnsupportedSegwitFlag { flag }
482482
}
483-
_ => TransactionError::OtherTransactionError,
483+
_ => TransactionError::OtherTransactionErr,
484484
}
485485
}
486486
}
@@ -500,7 +500,7 @@ impl From<bdk::bitcoin::psbt::ExtractTxError> for ExtractTxError {
500500
bdk::bitcoin::psbt::ExtractTxError::SendingTooMuch { .. } => {
501501
ExtractTxError::SendingTooMuch
502502
}
503-
_ => ExtractTxError::OtherExtractTransactionError,
503+
_ => ExtractTxError::OtherExtractTxErr,
504504
}
505505
}
506506
}

0 commit comments

Comments
 (0)