diff --git a/units/src/amount.rs b/units/src/amount.rs index 268ee6ca..963a248f 100644 --- a/units/src/amount.rs +++ b/units/src/amount.rs @@ -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()),