diff options
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)) => { |