mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 10:50:40 +00:00
Fixed variable case warnings
This commit is contained in:
parent
493ed1322c
commit
68819c89bf
@ -1,6 +1,6 @@
|
||||
use ::Cursive;
|
||||
use view::{View,ViewPath,SizeRequest,DimensionRequest};
|
||||
use vec::{Vec2};
|
||||
use vec::Vec2;
|
||||
use printer::Printer;
|
||||
|
||||
enum Focus {
|
||||
|
@ -48,15 +48,15 @@ impl TextView {
|
||||
}
|
||||
|
||||
fn get_ideal_size(&self) -> Vec2 {
|
||||
let mut maxWidth = 0;
|
||||
let mut max_width = 0;
|
||||
let mut height = 0;
|
||||
|
||||
for line in self.content.split("\n") {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user