### What it does Inspired by: https://github.com/rust-lang/rust/pull/97922 In a basic case like this Clippy could suggest to remove the call to reserve() because it's unnecessary: ### Lint Name unnecessary_reserve ### Category pedantic ### Advantage _No response_ ### Drawbacks _No response_ ### Example ```rust fn test1(v: &mut Vec<u32>, b: &[u32]) { v.reserve(b.len()); v.extend(b); } ``` The same for VecDeque. <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"wowinter13"}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->