Merge rust-bitcoin/rust-bitcoin#2573: Remove useless convertion

62f726d5a8 Remove useless convertion (Tobin C. Harding)

Pull request description:

  No clue how this got into master, I thought pinning nightly stopped things like this; found with `just sane`.

  Clippy emits:

   useless conversion to the same type: `amount::ParseAmountError`

  As suggested, remove the useless conversion.

ACKs for top commit:
  sanket1729:
    utACK 62f726d5a8

Tree-SHA512: c73a7ba79c17451f226ba004e2abea709e083aa71b9c117e39beb1623c16d9ca85c398f12da079de14bfdd21725057ba89e1515be034970bcc2ce40fc766cd14
This commit is contained in:
Andrew Poelstra 2024-03-12 11:35:23 +00:00
commit 960b30c1e6
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -2493,7 +2493,7 @@ mod tests {
use super::ParseAmountError as E;
assert_eq!(Amount::from_str("x BTC"), Err(E::from(E::from(InvalidCharacterError { invalid_char: 'x', position: 0 })).into()));
assert_eq!(Amount::from_str("x BTC"), Err(E::from(InvalidCharacterError { invalid_char: 'x', position: 0 }).into()));
assert_eq!(
Amount::from_str("xBTC"),
Err(Unknown(UnknownDenominationError("xBTC".into())).into()),