Skip to content

Commit e50a178

Browse files
oech3cakebaker
authored andcommitted
tee: restrict to NamedReader
1 parent 71ba69a commit e50a178

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uu/tee/src/tee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ struct MultiWriter {
153153
impl MultiWriter {
154154
/// Copies all bytes from the input buffer to the output buffer
155155
/// without buffering which is POSIX requirement.
156-
pub fn copy_unbuffered<R: Read>(&mut self, mut input: R) -> Result<()> {
156+
pub fn copy_unbuffered(&mut self, mut input: NamedReader) -> Result<()> {
157157
// todo: support splice() and tee() fast-path at here
158158
// The implementation for this function is adopted from the generic buffer copy implementation from
159159
// the standard library:

0 commit comments

Comments
 (0)