From bdbd9bce216a4e7ede9e85bb00c47d32a507f227 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Thu, 23 Jan 2020 19:04:45 +0900 Subject: [PATCH] Make tests compile again after updating to Rust 2018. --- src/term_ui/formatter.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/term_ui/formatter.rs b/src/term_ui/formatter.rs index 42b9726..513b43b 100644 --- a/src/term_ui/formatter.rs +++ b/src/term_ui/formatter.rs @@ -318,12 +318,14 @@ fn grapheme_vis_width_at_vis_pos(g: RopeSlice, pos: usize, tab_width: usize) -> #[cfg(test)] mod tests { #![allow(unused_imports)] - use super::*; - use buffer::Buffer; - use formatter::RoundingBehavior::{Ceiling, Floor, Round}; - use formatter::{LineFormatter, LINE_BLOCK_LENGTH}; 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] fn dimensions_1() {