taler-rust

GNU Taler code in Rust. Largely core banking integrations.
Log | Files | Refs | Submodules | README | LICENSE

commit b2e56c14e741dd99736eb7cf6d5328fb759f8816
parent 4019ab323771ee02486072b50adb13b5836c8f6b
Author: Antoine A <>
Date:   Thu,  9 Jul 2026 15:40:04 +0200

common: clippy fix

Diffstat:
Madapters/taler-magnet-bank/src/db.rs | 4++--
Mcommon/taler-common/src/error.rs | 2+-
Mcommon/taler-common/src/types/amount.rs | 2+-
Mcommon/taler-common/src/types/iban.rs | 2+-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/adapters/taler-magnet-bank/src/db.rs b/adapters/taler-magnet-bank/src/db.rs @@ -140,7 +140,7 @@ impl Display for TxOut { f, "{value_date} {code} {amount} ({} {}) {status:?} '{subject}'", creditor.bban(), - &creditor.name + creditor.name ) } } @@ -165,7 +165,7 @@ impl Display for Initiated { f, "{id} {amount} ({} {}) '{subject}'", creditor.bban(), - &creditor.name + creditor.name ) } } diff --git a/common/taler-common/src/error.rs b/common/taler-common/src/error.rs @@ -23,7 +23,7 @@ fn fmt_with_source( mut e: &dyn std::error::Error, ) -> std::fmt::Result { loop { - write!(f, "{}", &e)?; + write!(f, "{e}")?; if let Some(source) = e.source() { write!(f, ": ")?; e = source; diff --git a/common/taler-common/src/types/amount.rs b/common/taler-common/src/types/amount.rs @@ -482,7 +482,7 @@ fn test_amount_parse() { for str in INVALID_AMOUNTS { let amount = Amount::from_str(str); - assert!(amount.is_err(), "invalid {} got {:?}", str, &amount); + assert!(amount.is_err(), "invalid {str} got {amount:?}"); } let eur: Currency = Currency::EUR; diff --git a/common/taler-common/src/types/iban.rs b/common/taler-common/src/types/iban.rs @@ -67,7 +67,7 @@ impl IBAN { .iso_bytes() .iter() .copied() - .chain([b'0', b'0']) + .chain(*b"00") .chain(bban.iter().copied()), ) .unwrap();