From ece629b1cc4403e1e4f7118534dee8e147a162cf Mon Sep 17 00:00:00 2001 From: Evgenii Date: Mon, 4 Feb 2019 13:30:43 +0300 Subject: transition to Rust 2018 --- src/string.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/string.rs') diff --git a/src/string.rs b/src/string.rs index dc48a6b13fd..cb174841738 100644 --- a/src/string.rs +++ b/src/string.rs @@ -14,9 +14,9 @@ use regex::Regex; use unicode_categories::UnicodeCategories; use unicode_segmentation::UnicodeSegmentation; -use config::Config; -use shape::Shape; -use utils::{unicode_str_width, wrap_str}; +use crate::config::Config; +use crate::shape::Shape; +use crate::utils::{unicode_str_width, wrap_str}; const MIN_STRING: usize = 10; @@ -362,8 +362,8 @@ fn graphemes_width(graphemes: &[&str]) -> usize { #[cfg(test)] mod test { use super::{break_string, detect_url, rewrite_string, SnippetState, StringFormat}; - use config::Config; - use shape::{Indent, Shape}; + use crate::config::Config; + use crate::shape::{Indent, Shape}; use unicode_segmentation::UnicodeSegmentation; #[test] -- cgit 1.4.1-3-g733a5