aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-04 03:49:42 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-04 03:49:42 -0500
commit3ba8bad931571f9a2586dd02d50415dc8428ed41 (patch)
tree0943a8cd3690ce64afe99e8fa89c16ab4e7593d2 /src
parentc5b6a118bf88e713dbb61bc9bee74c4570826722 (diff)
downloadttyrec-3ba8bad931571f9a2586dd02d50415dc8428ed41.tar.gz
ttyrec-3ba8bad931571f9a2586dd02d50415dc8428ed41.zip
fix line lengths
Diffstat (limited to 'src')
-rw-r--r--src/error.rs24
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)
+ }
}
}
}