From ee78a8640669bf005c35fe44f1e2e3b07ee228f1 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Fri, 29 May 2026 12:12:57 +0900 Subject: [PATCH] tee: restrict to NamedReader --- src/uu/tee/src/tee.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/tee/src/tee.rs b/src/uu/tee/src/tee.rs index 8f96f4cc73d..ec5709a074d 100644 --- a/src/uu/tee/src/tee.rs +++ b/src/uu/tee/src/tee.rs @@ -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(&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: