about summary refs log tree commit diff
path: root/src/expr.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-05-23 17:02:59 +1200
committerNick Cameron <ncameron@mozilla.com>2015-05-23 17:53:53 +1200
commit1a09a6d00a782db90501c0921dd4c7587f6eba72 (patch)
treefff5155cf7126bc9792894bc64e2b6d4aad86c9f /src/expr.rs
parentaa6f7e8d3cad4ee2737d9dce662977f216e01096 (diff)
Use config file for constants
Diffstat (limited to 'src/expr.rs')
-rw-r--r--src/expr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.rs b/src/expr.rs
index 1da66c4e328..c1cbf175645 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -15,7 +15,7 @@ use lists::{write_list, ListFormatting, SeparatorTactic, ListTactic};
 use syntax::{ast, ptr};
 use syntax::codemap::{Span, Pos};
 
-use {MAX_WIDTH, MIN_STRING};
+use MIN_STRING;
 
 impl<'a> FmtVisitor<'a> {
     // TODO NEEDS TESTS
@@ -26,7 +26,7 @@ impl<'a> FmtVisitor<'a> {
         // strings, or if the string is too long for the line.
         let l_loc = self.codemap.lookup_char_pos(span.lo);
         let r_loc = self.codemap.lookup_char_pos(span.hi);
-        if l_loc.line == r_loc.line && r_loc.col.to_usize() <= MAX_WIDTH {
+        if l_loc.line == r_loc.line && r_loc.col.to_usize() <= config!(max_width) {
             return self.snippet(span);
         }