diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-04 20:26:53 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-04 20:26:53 -0500 |
commit | add8d2d0de591a055e9c7b3d5c557cb72f961c39 (patch) | |
tree | 460f24fa35ecb6325434cfaf2db9d2e130ae64b0 /src/bin/ttyrec/main.rs | |
parent | de4c2b1de367aa2b6d20ec0c90f317e19d245ae9 (diff) | |
download | ttyrec-bin-add8d2d0de591a055e9c7b3d5c557cb72f961c39.tar.gz ttyrec-bin-add8d2d0de591a055e9c7b3d5c557cb72f961c39.zip |
clippy
Diffstat (limited to 'src/bin/ttyrec/main.rs')
-rw-r--r-- | src/bin/ttyrec/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/ttyrec/main.rs b/src/bin/ttyrec/main.rs index c594c87..a6ccdf4 100644 --- a/src/bin/ttyrec/main.rs +++ b/src/bin/ttyrec/main.rs @@ -1,3 +1,7 @@ +#![warn(clippy::pedantic)] +#![warn(clippy::nursery)] +#![allow(clippy::too_many_lines)] + use async_std::io::{ReadExt as _, WriteExt as _}; use async_std::prelude::FutureExt as _; use async_std::stream::StreamExt as _; @@ -146,12 +150,8 @@ async fn async_main(opt: Opt) -> anyhow::Result<()> { Err(e) => { if e.raw_os_error() == Some(libc::EIO) { break; - } else { - anyhow::bail!( - "failed to read from child process: {}", - e - ); } + anyhow::bail!("failed to read from child process: {}", e); } }, Event::Resize((h, w)) => { |