From ec7e4ab12f8abb977e66693478a300698a551c22 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Mon, 15 Jun 2026 16:12:46 +0000 Subject: [PATCH] feat: add retain_mut crate Std 1.61 stabilized Vec::retain_mut and VecDeque::retain_mut, replacing the retain_mut crate. --- data/retain_mut.toml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 data/retain_mut.toml diff --git a/data/retain_mut.toml b/data/retain_mut.toml new file mode 100644 index 0000000..943e8ce --- /dev/null +++ b/data/retain_mut.toml @@ -0,0 +1,6 @@ +description = """ +The standard library provides `Vec::retain_mut` and `VecDeque::retain_mut` \ +(stable since Rust 1.61), which accept a `&mut T` in the predicate, replacing \ +the need for this crate. +""" +url = "https://doc.rust-lang.org/std/vec/struct.Vec.html#method.retain_mut"