Make tests compile again after updating to Rust 2018.

This commit is contained in:
Nathan Vegdahl 2020-01-23 19:04:45 +09:00
parent 8773bcf0b5
commit bdbd9bce21

View File

@ -318,12 +318,14 @@ fn grapheme_vis_width_at_vis_pos(g: RopeSlice, pos: usize, tab_width: usize) ->
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
#![allow(unused_imports)] #![allow(unused_imports)]
use super::*;
use buffer::Buffer;
use formatter::RoundingBehavior::{Ceiling, Floor, Round};
use formatter::{LineFormatter, LINE_BLOCK_LENGTH};
use ropey::Rope; use ropey::Rope;
use utils::RopeGraphemes;
use crate::buffer::Buffer;
use crate::formatter::RoundingBehavior::{Ceiling, Floor, Round};
use crate::formatter::{LineFormatter, LINE_BLOCK_LENGTH};
use crate::utils::RopeGraphemes;
use super::*;
#[test] #[test]
fn dimensions_1() { fn dimensions_1() {