diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-04 03:49:42 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-04 03:49:42 -0500 |
commit | 3ba8bad931571f9a2586dd02d50415dc8428ed41 (patch) | |
tree | 0943a8cd3690ce64afe99e8fa89c16ab4e7593d2 /src | |
parent | c5b6a118bf88e713dbb61bc9bee74c4570826722 (diff) | |
download | ttyrec-3ba8bad931571f9a2586dd02d50415dc8428ed41.tar.gz ttyrec-3ba8bad931571f9a2586dd02d50415dc8428ed41.zip |
fix line lengths
Diffstat (limited to 'src')
-rw-r--r-- | src/error.rs | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/error.rs b/src/error.rs index 6978990..5442068 100644 --- a/src/error.rs +++ b/src/error.rs @@ -23,10 +23,26 @@ impl std::fmt::Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { Self::EOF => write!(f, "eof"), - Self::FrameTooBig { input } => write!(f, "failed to create ttyrec frame: got {} bytes of data, but ttyrec frames can be at most {} bytes", input, u32::max_value()), - Self::FrameTooLong { input } => write!(f, "failed to create ttyrec frame: got {} seconds, but ttyrecs can be at most {} seconds", input, u32::max_value()), - Self::Read { source } => write!(f, "failed to read from input: {}", source), - Self::Write { source } => write!(f, "failed to write to output: {}", source), + Self::FrameTooBig { input } => write!( + f, + "failed to create ttyrec frame: got {} bytes of data, but \ + ttyrec frames can be at most {} bytes", + input, + u32::max_value() + ), + Self::FrameTooLong { input } => write!( + f, + "failed to create ttyrec frame: got {} seconds, but ttyrecs \ + can be at most {} seconds", + input, + u32::max_value() + ), + Self::Read { source } => { + write!(f, "failed to read from input: {}", source) + } + Self::Write { source } => { + write!(f, "failed to write to output: {}", source) + } } } } |