mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fixed variable case warnings
This commit is contained in:
parent
493ed1322c
commit
68819c89bf
@ -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 {
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user