From 5b25893496afbcb441ec7b4155a5bec6a1a524b8 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sat, 16 Jul 2016 13:52:28 -0700 Subject: [PATCH] Rustfmt --- src/printer.rs | 5 +++-- src/view/edit_view.rs | 5 ++++- src/with.rs | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) 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 {}