]> git.lizzy.rs Git - rust.git/blobdiff - src/missed_spans.rs
Remove unnecessary config parameter from format_missing_with_indent.
[rust.git] / src / missed_spans.rs
index f39480f5450f876a1b2b34b85a8ef13ad8153337..db9599c170640fe53af91208e398c08cec0e616a 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use config::Config;
 use visitor::FmtVisitor;
 
 use syntax::codemap::{self, BytePos};
@@ -20,7 +19,8 @@ pub fn format_missing(&mut self, end: BytePos) {
         self.format_missing_inner(end, |this, last_snippet, _| this.buffer.push_str(last_snippet))
     }
 
-    pub fn format_missing_with_indent(&mut self, end: BytePos, config: &Config) {
+    pub fn format_missing_with_indent(&mut self, end: BytePos) {
+        let config = self.config;
         self.format_missing_inner(end,
                                   |this, last_snippet, snippet| {
                                       this.buffer.push_str(last_snippet.trim_right());