silence a clippy error

This commit is contained in:
auronandace
2026-02-06 08:18:06 +00:00
parent 67e9cf25c7
commit a275a047ce
+1
View File
@@ -93,6 +93,7 @@ impl<R: Read> BufReader<R> {
/// Ok(())
/// }
/// ```
#[allow(clippy::uninit_vec)] // buffer initialized after set_len
pub fn with_capacity(cap: usize, inner: R) -> BufReader<R> {
unsafe {
let mut buffer = Vec::with_capacity(cap);