diff --git a/asset-registry/src/impls.rs b/asset-registry/src/impls.rs index 26e01f7a3..85912f699 100644 --- a/asset-registry/src/impls.rs +++ b/asset-registry/src/impls.rs @@ -101,8 +101,7 @@ impl WeightTrader for AssetRegistryTrad ) -> Result { log::trace!( target: "xcm::weight", - "AssetRegistryTrader::buy_weight weight: {:?}, payment: {:?}", - weight, payment, + "AssetRegistryTrader::buy_weight weight: {weight:?}, payment: {payment:?}" ); for (asset, _) in payment.fungible.iter() { @@ -140,7 +139,7 @@ impl WeightTrader for AssetRegistryTrad } fn refund_weight(&mut self, weight: XcmWeight, _context: &XcmContext) -> Option { - log::trace!(target: "xcm::weight", "AssetRegistryTrader::refund_weight weight: {:?}", weight); + log::trace!(target: "xcm::weight", "AssetRegistryTrader::refund_weight weight: {weight:?}"); match self.bought_weight { Some(ref mut bought) => { diff --git a/authority/src/lib.rs b/authority/src/lib.rs index 8878fb63d..b6f024ec3 100644 --- a/authority/src/lib.rs +++ b/authority/src/lib.rs @@ -25,6 +25,7 @@ #![allow(clippy::boxed_local)] #![allow(clippy::borrowed_box)] #![allow(clippy::unused_unit)] +#![allow(clippy::useless_conversion)] use frame_support::{ dispatch::PostDispatchInfo, diff --git a/oracle/src/lib.rs b/oracle/src/lib.rs index c0c9faf9c..09bdf1408 100644 --- a/oracle/src/lib.rs +++ b/oracle/src/lib.rs @@ -18,6 +18,7 @@ // Disable the following two lints since they originate from an external macro (namely decl_storage) #![allow(clippy::string_lit_as_bytes)] #![allow(clippy::unused_unit)] +#![allow(clippy::useless_conversion)] use parity_scale_codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen}; diff --git a/payments/src/lib.rs b/payments/src/lib.rs index 1d74b27c0..58d447fad 100644 --- a/payments/src/lib.rs +++ b/payments/src/lib.rs @@ -59,6 +59,7 @@ //! When a payment is 'completed' or 'cancelled' it is removed from storage and //! hence not tracked by a state. #![cfg_attr(not(feature = "std"), no_std)] +#![allow(clippy::useless_conversion)] pub use pallet::*; #[cfg(test)] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e5acc0608..57faae7a7 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.84.1" +channel = "1.88.0" components = ["rust-src", "rustfmt", "clippy"] targets = ["wasm32-unknown-unknown"] diff --git a/tokens/src/lib.rs b/tokens/src/lib.rs index 27ffc844e..d9f7327f5 100644 --- a/tokens/src/lib.rs +++ b/tokens/src/lib.rs @@ -36,6 +36,7 @@ #![cfg_attr(not(feature = "std"), no_std)] #![allow(clippy::unused_unit)] #![allow(clippy::comparison_chain)] +#![allow(clippy::useless_conversion)] pub use crate::imbalances::{NegativeImbalance, PositiveImbalance}; diff --git a/xtokens/src/lib.rs b/xtokens/src/lib.rs index ff43bcd08..5467cc2b0 100644 --- a/xtokens/src/lib.rs +++ b/xtokens/src/lib.rs @@ -689,7 +689,7 @@ pub mod module { T::XcmExecutor::prepare_and_execute(origin_location, msg, &mut hash, weight, weight) .ensure_complete() .map_err(|error| { - log::error!("Failed execute transfer message with {:?}", error); + log::error!("Failed execute transfer message with {error:?}"); Error::::XcmExecutionFailed })?;