diff --git a/build-script-utils/src/license.rs b/build-script-utils/src/license.rs index 5fb2d7d7e..122a32ce2 100644 --- a/build-script-utils/src/license.rs +++ b/build-script-utils/src/license.rs @@ -5,7 +5,7 @@ use walkdir::{DirEntry, WalkDir}; // source file. pub fn check_file_licenses>(path: P, expected_license_text: &[u8], exclude_paths: &[&str]) { // The following directories will be excluded from the license scan. - let skips = vec!["artifacts", "corpus", "target", "fuzz_targets"]; + let skips = ["artifacts", "corpus", "target", "fuzz_targets"]; let path = path.as_ref(); diff --git a/oracle/src/lib.rs b/oracle/src/lib.rs index 13b5fd280..96ba87527 100644 --- a/oracle/src/lib.rs +++ b/oracle/src/lib.rs @@ -186,7 +186,7 @@ impl, I: 'static> Pallet { pub fn read_raw_values(key: &T::OracleKey) -> Vec> { T::Members::sorted_members() .iter() - .chain(vec![T::RootOperatorAccountId::get()].iter()) + .chain([T::RootOperatorAccountId::get()].iter()) .filter_map(|x| Self::raw_values(x, key)) .collect() } diff --git a/xtokens/src/lib.rs b/xtokens/src/lib.rs index bc9621017..20eb05994 100644 --- a/xtokens/src/lib.rs +++ b/xtokens/src/lib.rs @@ -725,14 +725,12 @@ pub mod module { ) -> Result, DispatchError> { let mut reanchored_dest = dest; if reserve == MultiLocation::parent() { - match dest { - MultiLocation { - parents, - interior: X1(Parachain(id)), - } if parents == 1 => { - reanchored_dest = Parachain(id).into(); - } - _ => {} + if let MultiLocation { + parents: 1, + interior: X1(Parachain(id)), + } = dest + { + reanchored_dest = Parachain(id).into(); } }