Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Apr 25, 2024
1 parent 4f8b7f4 commit 4dd4e91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions bdk-ffi/src/bdk.udl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ interface AddressError {
ExcessiveScriptSize();
UnrecognizedScript();
NetworkValidation(Network required, Network found, string address);
OtherAddressError();
OtherAddressErr();
};

[Error]
Expand All @@ -98,7 +98,7 @@ interface TransactionError {
NonMinimalVarInt();
ParseFailed();
UnsupportedSegwitFlag(u8 flag);
OtherTransactionError();
OtherTransactionErr();
};

[Error]
Expand Down Expand Up @@ -151,7 +151,7 @@ interface ExtractTxError {
AbsurdFeeRate(u64 fee_rate);
MissingInputValue();
SendingTooMuch();
OtherExtractTransactionError();
OtherExtractTxErr();
};

[Error]
Expand Down
14 changes: 7 additions & 7 deletions bdk-ffi/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ pub enum AddressError {

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

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

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

#[derive(Debug, thiserror::Error)]
Expand Down Expand Up @@ -359,7 +359,7 @@ pub enum ExtractTxError {
#[error(
"this error is required because the bdk::bitcoin::psbt::ExtractTxError is non-exhaustive"
)]
OtherExtractTransactionError,
OtherExtractTxErr,
}

impl From<BdkDescriptorError> for DescriptorError {
Expand Down Expand Up @@ -622,7 +622,7 @@ impl From<bdk::bitcoin::address::Error> for AddressError {
found,
address: format!("{:?}", address),
},
_ => AddressError::OtherAddressError,
_ => AddressError::OtherAddressErr,
}
}
}
Expand All @@ -638,7 +638,7 @@ impl From<ParseError> for AddressError {
ParseError::WitnessProgram(e) => AddressError::WitnessProgram {
error_message: e.to_string(),
},
_ => AddressError::OtherAddressError,
_ => AddressError::OtherAddressErr,
}
}
}
Expand All @@ -663,7 +663,7 @@ impl From<bdk::bitcoin::consensus::encode::Error> for TransactionError {
bdk::bitcoin::consensus::encode::Error::UnsupportedSegwitFlag(flag) => {
TransactionError::UnsupportedSegwitFlag { flag }
}
_ => TransactionError::OtherTransactionError,
_ => TransactionError::OtherTransactionErr,
}
}
}
Expand All @@ -683,7 +683,7 @@ impl From<bdk::bitcoin::psbt::ExtractTxError> for ExtractTxError {
bdk::bitcoin::psbt::ExtractTxError::SendingTooMuch { .. } => {
ExtractTxError::SendingTooMuch
}
_ => ExtractTxError::OtherExtractTransactionError,
_ => ExtractTxError::OtherExtractTxErr,
}
}
}
Expand Down

0 comments on commit 4dd4e91

Please sign in to comment.