diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-06-26 09:14:25 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-06-26 20:16:49 +0200 |
commit | 0c735ebdc75142d6b38d1d9bbbae5ef084ad4f4a (patch) | |
tree | e7836ec34db3291179b938d8de06f560f25dac82 /cli/ops/tty.rs | |
parent | d924ad36aca5004c614d43655e8a7ef030f31fc8 (diff) |
Fix clippy warning (#6503)
Diffstat (limited to 'cli/ops/tty.rs')
-rw-r--r-- | cli/ops/tty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/ops/tty.rs b/cli/ops/tty.rs index ee357ed68..bf94ec17f 100644 --- a/cli/ops/tty.rs +++ b/cli/ops/tty.rs @@ -77,7 +77,7 @@ pub fn op_set_raw( // For now, only stdin. let handle = match &mut resource_holder.resource { - StreamResource::Stdin(_, _) => std::io::stdin().as_raw_handle(), + StreamResource::Stdin(..) => std::io::stdin().as_raw_handle(), StreamResource::FsFile(ref mut option_file_metadata) => { if let Some((tokio_file, metadata)) = option_file_metadata.take() { match tokio_file.try_into_std() { @@ -245,7 +245,7 @@ pub fn op_isatty( } } Err(StreamResource::FsFile(_)) => unreachable!(), - Err(StreamResource::Stdin(_, _)) => Ok(atty::is(atty::Stream::Stdin)), + Err(StreamResource::Stdin(..)) => Ok(atty::is(atty::Stream::Stdin)), _ => Ok(false), })?; Ok(JsonOp::Sync(json!(isatty))) |