From 3ba8bad931571f9a2586dd02d50415dc8428ed41 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 4 Dec 2021 03:49:42 -0500 Subject: fix line lengths --- src/error.rs | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'src') 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) + } } } } -- cgit v1.2.3-54-g00ecf