Fixed variable case warnings

This commit is contained in:
Alexandre Bury 2015-05-18 15:31:55 -07:00
parent 493ed1322c
commit 68819c89bf
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
use ::Cursive; use ::Cursive;
use view::{View,ViewPath,SizeRequest,DimensionRequest}; use view::{View,ViewPath,SizeRequest,DimensionRequest};
use vec::{Vec2}; use vec::Vec2;
use printer::Printer; use printer::Printer;
enum Focus { enum Focus {

View File

@ -48,15 +48,15 @@ impl TextView {
} }
fn get_ideal_size(&self) -> Vec2 { fn get_ideal_size(&self) -> Vec2 {
let mut maxWidth = 0; let mut max_width = 0;
let mut height = 0; let mut height = 0;
for line in self.content.split("\n") { for line in self.content.split("\n") {
height += 1; height += 1;
maxWidth = cmp::max(maxWidth, line.len() as u32); max_width = cmp::max(max_width, line.len() as u32);
} }
Vec2::new(maxWidth, height) Vec2::new(max_width, height)
} }
} }