Skip to content

Commit 1eff39d

Browse files
committed
fix: change msrv to 1.69 for binary heap
1 parent d5dbee4 commit 1eff39d

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

tests/ui/manual_retain.fixed

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ fn vec_deque_retain() {
218218
bar = foobar.into_iter().filter(|x| x % 2 == 0).collect();
219219
}
220220

221-
#[clippy::msrv = "1.70"]
222-
fn _msrv_170() {
221+
#[clippy::msrv = "1.69"]
222+
fn _msrv_169() {
223223
let mut binary_heap = BinaryHeap::from([1, 2, 3]);
224-
binary_heap.retain(|x| x % 2 == 0);
224+
binary_heap = binary_heap.into_iter().filter(|x| x % 2 == 0).collect();
225225
}
226226

227227
#[clippy::msrv = "1.52"]

tests/ui/manual_retain.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ fn vec_deque_retain() {
224224
bar = foobar.into_iter().filter(|x| x % 2 == 0).collect();
225225
}
226226

227-
#[clippy::msrv = "1.70"]
228-
fn _msrv_170() {
227+
#[clippy::msrv = "1.69"]
228+
fn _msrv_169() {
229229
let mut binary_heap = BinaryHeap::from([1, 2, 3]);
230230
binary_heap = binary_heap.into_iter().filter(|x| x % 2 == 0).collect();
231231
}

tests/ui/manual_retain.stderr

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,5 @@ error: this expression can be written more simply using `.retain()`
138138
LL | vec_deque = vec_deque.into_iter().filter(|x| x % 2 == 0).collect();
139139
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling `.retain()` instead: `vec_deque.retain(|x| x % 2 == 0)`
140140

141-
error: this expression can be written more simply using `.retain()`
142-
--> $DIR/manual_retain.rs:230:5
143-
|
144-
LL | binary_heap = binary_heap.into_iter().filter(|x| x % 2 == 0).collect();
145-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling `.retain()` instead: `binary_heap.retain(|x| x % 2 == 0)`
146-
147-
error: aborting due to 23 previous errors
141+
error: aborting due to 22 previous errors
148142

0 commit comments

Comments
 (0)