Silenced some compiler warnings.
This commit is contained in:
parent
6f2cbe5b87
commit
e9c06615f9
|
@ -301,7 +301,7 @@ impl<'a, T: LineFormatter<'a>> Editor<'a, T> {
|
|||
// the closest cursor.
|
||||
|
||||
let gi = self.cursors[0].range.0;
|
||||
let vho = self.cursors[0].vis_start;
|
||||
//let vho = self.cursors[0].vis_start;
|
||||
|
||||
self.view_pos.0 = gi;
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#![allow(dead_code)]
|
||||
|
||||
use buffer::line::{Line, LineGraphemeIter};
|
||||
use std::cmp::{min, max};
|
||||
use std::cmp::max;
|
||||
|
||||
#[derive(Copy, PartialEq)]
|
||||
pub enum RoundingBehavior {
|
||||
|
@ -134,7 +136,8 @@ impl<'a> LineFormatter<'a> for TestLineFormatter {
|
|||
|
||||
|
||||
mod tests {
|
||||
use super::{LineFormatter, TestLineFormatter, TestLineFormatIter};
|
||||
#![allow(unused_imports)]
|
||||
use super::{TestLineFormatter, TestLineFormatIter};
|
||||
use buffer::line::Line;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -2,7 +2,7 @@ use std::cmp::max;
|
|||
|
||||
use string_utils::{is_line_ending};
|
||||
use buffer::line::{Line, LineGraphemeIter};
|
||||
use formatter::{LineFormatter, RoundingBehavior};
|
||||
use formatter::LineFormatter;
|
||||
|
||||
//===================================================================
|
||||
// LineFormatter implementation for terminals/consoles.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
use rustbox;
|
||||
use rustbox::Color;
|
||||
use editor::Editor;
|
||||
use formatter::{LineFormatter, RoundingBehavior};
|
||||
use formatter::LineFormatter;
|
||||
use std::char;
|
||||
use std::time::duration::Duration;
|
||||
use string_utils::{is_line_ending};
|
||||
|
|
Loading…
Reference in New Issue
Block a user