tee: restrict to NamedReader

This commit is contained in:
oech3
2026-05-29 10:01:00 +02:00
committed by Daniel Hofstetter
parent 71ba69a2ac
commit e50a178328
+1 -1
View File
@@ -153,7 +153,7 @@ struct MultiWriter {
impl MultiWriter {
/// Copies all bytes from the input buffer to the output buffer
/// without buffering which is POSIX requirement.
pub fn copy_unbuffered<R: Read>(&mut self, mut input: R) -> Result<()> {
pub fn copy_unbuffered(&mut self, mut input: NamedReader) -> Result<()> {
// todo: support splice() and tee() fast-path at here
// The implementation for this function is adopted from the generic buffer copy implementation from
// the standard library: