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: utACK62f726d5a8
Tree-SHA512: c73a7ba79c17451f226ba004e2abea709e083aa71b9c117e39beb1623c16d9ca85c398f12da079de14bfdd21725057ba89e1515be034970bcc2ce40fc766cd14
This commit is contained in:
commit
960b30c1e6
|
@ -2493,7 +2493,7 @@ mod tests {
|
||||||
|
|
||||||
use super::ParseAmountError as E;
|
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!(
|
assert_eq!(
|
||||||
Amount::from_str("xBTC"),
|
Amount::from_str("xBTC"),
|
||||||
Err(Unknown(UnknownDenominationError("xBTC".into())).into()),
|
Err(Unknown(UnknownDenominationError("xBTC".into())).into()),
|
||||||
|
|
Loading…
Reference in New Issue