about summary refs log tree commit diff
path: root/src/string.rs
diff options
context:
space:
mode:
authorEvgenii <evgeniy@nspcc.ru>2019-02-04 13:30:43 +0300
committerEvgenii <evgeniy@nspcc.ru>2019-02-04 13:30:43 +0300
commitece629b1cc4403e1e4f7118534dee8e147a162cf (patch)
treee08e06e11aefba31c7fed6639bfb41d02f6482ac /src/string.rs
parentbfcfaf17434b33a4f93f36b44c8eea8b79445ffb (diff)
transition to Rust 2018
Diffstat (limited to 'src/string.rs')
-rw-r--r--src/string.rs10
1 files changed, 5 insertions, 5 deletions
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]