X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fmissed_spans.rs;h=db9599c170640fe53af91208e398c08cec0e616a;hb=01bdcd001443d7639fc0127e31c61e5ff4e98464;hp=f39480f5450f876a1b2b34b85a8ef13ad8153337;hpb=05c8c2893584dcb8717314055833ea52a1e51657;p=rust.git diff --git a/src/missed_spans.rs b/src/missed_spans.rs index f39480f5450..db9599c1706 100644 --- a/src/missed_spans.rs +++ b/src/missed_spans.rs @@ -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());