Skip to content

Commit d63b6e5

Browse files
committed
Address #[warn(clippy::useless_conversion)]
Signed-off-by: hi-rustin <[email protected]>
1 parent 9acc0dc commit d63b6e5

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/cli/self_update/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl UnixShell for Zsh {
195195
self.rcfiles()
196196
.into_iter()
197197
.filter(|env| env.is_file())
198-
.chain(self.rcfiles().into_iter())
198+
.chain(self.rcfiles())
199199
.take(1)
200200
.collect()
201201
}

src/test/mock/clitools.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,14 +1194,11 @@ fn build_mock_channel(
11941194
// Convert the mock installers to mock package definitions for the
11951195
// mock dist server
11961196
let mut all = MockChannelContent::default();
1197-
all.std.extend(
1198-
vec![
1199-
(std, host_triple.clone()),
1200-
(cross_std1, CROSS_ARCH1.to_string()),
1201-
(cross_std2, CROSS_ARCH2.to_string()),
1202-
]
1203-
.into_iter(),
1204-
);
1197+
all.std.extend(vec![
1198+
(std, host_triple.clone()),
1199+
(cross_std1, CROSS_ARCH1.to_string()),
1200+
(cross_std2, CROSS_ARCH2.to_string()),
1201+
]);
12051202
all.rustc.push((rustc, host_triple.clone()));
12061203
all.cargo.push((cargo, host_triple.clone()));
12071204

src/test/mock/dist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl MockDistServer {
131131
let mut hashes = HashMap::new();
132132
for package in &channel.packages {
133133
let new_hashes = self.build_package(channel, package, enable_xz, enable_zst);
134-
hashes.extend(new_hashes.into_iter());
134+
hashes.extend(new_hashes);
135135
}
136136
for v in vs {
137137
match *v {

0 commit comments

Comments
 (0)