Skip to content

Commit 22a4f7b

Browse files
authored
some clippy fix (#958)
1 parent 581a55e commit 22a4f7b

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

build-script-utils/src/license.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use walkdir::{DirEntry, WalkDir};
55
// source file.
66
pub fn check_file_licenses<P: AsRef<Path>>(path: P, expected_license_text: &[u8], exclude_paths: &[&str]) {
77
// The following directories will be excluded from the license scan.
8-
let skips = vec!["artifacts", "corpus", "target", "fuzz_targets"];
8+
let skips = ["artifacts", "corpus", "target", "fuzz_targets"];
99

1010
let path = path.as_ref();
1111

oracle/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
186186
pub fn read_raw_values(key: &T::OracleKey) -> Vec<TimestampedValueOf<T, I>> {
187187
T::Members::sorted_members()
188188
.iter()
189-
.chain(vec![T::RootOperatorAccountId::get()].iter())
189+
.chain([T::RootOperatorAccountId::get()].iter())
190190
.filter_map(|x| Self::raw_values(x, key))
191191
.collect()
192192
}

xtokens/src/lib.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -725,14 +725,12 @@ pub mod module {
725725
) -> Result<Xcm<T::RuntimeCall>, DispatchError> {
726726
let mut reanchored_dest = dest;
727727
if reserve == MultiLocation::parent() {
728-
match dest {
729-
MultiLocation {
730-
parents,
731-
interior: X1(Parachain(id)),
732-
} if parents == 1 => {
733-
reanchored_dest = Parachain(id).into();
734-
}
735-
_ => {}
728+
if let MultiLocation {
729+
parents: 1,
730+
interior: X1(Parachain(id)),
731+
} = dest
732+
{
733+
reanchored_dest = Parachain(id).into();
736734
}
737735
}
738736

0 commit comments

Comments
 (0)