Skip to content

Commit c00b33f

Browse files
committed
clippy
1 parent aa56857 commit c00b33f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cargo-miri/src/phases.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ pub fn phase_cargo_miri(mut args: impl Iterator<Item = String>) {
185185
// explicitly do this even if RUSTC_STAGE is set, since for these builds we do *not* want the
186186
// bootstrap `rustc` thing in our way! Instead, we have MIRI_HOST_SYSROOT to use for host
187187
// builds.
188-
cmd.env("RUSTC", &fs::canonicalize(find_miri()).unwrap());
188+
cmd.env("RUSTC", fs::canonicalize(find_miri()).unwrap());
189189
cmd.env("MIRI_BE_RUSTC", "target"); // we better remember to *unset* this in the other phases!
190190

191191
// Set rustdoc to us as well, so we can run doctests.

src/range_map.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ mod tests {
219219
/// Query the map at every offset in the range and collect the results.
220220
fn to_vec<T: Copy>(map: &RangeMap<T>, offset: u64, len: u64) -> Vec<T> {
221221
(offset..offset + len)
222-
.into_iter()
223222
.map(|i| {
224223
map.iter(Size::from_bytes(i), Size::from_bytes(1)).next().map(|(_, &t)| t).unwrap()
225224
})

0 commit comments

Comments
 (0)