Add specialized Buf::chunks_vectored for Take (#617)

Co-authored-by: Alice Ryhl <[email protected]>
Co-authored-by: Michal 'vorner' Vaner <[email protected]>
This commit is contained in:
Sam Rijs
2025-01-13 12:53:52 +00:00
committed by GitHub
co-authored by Alice Ryhl Michal 'vorner' Vaner
parent 103d7bf9e0
commit aae4969fde
3 changed files with 102 additions and 1 deletions
+1 -1
View File
@@ -404,7 +404,7 @@ mod chain_limited_slices {
Buf::take(Buf::chain(Buf::chain(a, b), Buf::chain(c, d)), buf.len())
}
buf_tests!(make_input, /* `Limit` does not forward `chucks_vectored */ false);
buf_tests!(make_input, true);
}
#[allow(unused_allocation)] // This is intentional.