From 97d97afa8dc14028d8b027563168bb6e6112a86e Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Tue, 26 May 2015 17:07:57 -0700 Subject: [PATCH] Fix warnings --- src/view/edit_view.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/view/edit_view.rs b/src/view/edit_view.rs index 5ec62e8..f588141 100644 --- a/src/view/edit_view.rs +++ b/src/view/edit_view.rs @@ -10,7 +10,6 @@ use printer::Printer; pub struct EditView { content: String, cursor: usize, - multiline: bool, min_length: usize, } @@ -20,7 +19,6 @@ impl EditView { EditView { content: String::new(), cursor: 0, - multiline: false, min_length: 1, } } @@ -67,7 +65,7 @@ impl View for EditView { }); } - fn get_min_size(&self, req: SizeRequest) -> Vec2 { + fn get_min_size(&self, _: SizeRequest) -> Vec2 { Vec2::new(self.min_length, 1) }