diff --git a/src/printer.rs b/src/printer.rs index 1d26bf1..5774729 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -173,8 +173,9 @@ impl Printer { } /// Returns a printer on a subset of this one's area. - pub fn sub_printer, T: Into>(&self, offset: S, size: T, focused: bool) - -> Printer { + pub fn sub_printer, T: Into>(&self, offset: S, + size: T, focused: bool) + -> Printer { let offset = offset.into().or_min(self.size); Printer { offset: self.offset + offset, diff --git a/src/view/edit_view.rs b/src/view/edit_view.rs index d3d8ad5..ad8b635 100644 --- a/src/view/edit_view.rs +++ b/src/view/edit_view.rs @@ -80,7 +80,10 @@ impl EditView { impl View for EditView { fn draw(&self, printer: &Printer) { - assert!(printer.size.x == self.last_length, "Was promised {}, received {}", self.last_length, printer.size.x); + assert!(printer.size.x == self.last_length, + "Was promised {}, received {}", + self.last_length, + printer.size.x); let width = self.content.width(); printer.with_color(ColorStyle::Secondary, |printer| { diff --git a/src/with.rs b/src/with.rs index 9603191..dcb1b47 100644 --- a/src/with.rs +++ b/src/with.rs @@ -8,4 +8,4 @@ pub trait With: Sized { } } -impl With for T {} +impl With for T {}