about summary refs log tree commit diff
path: root/src/formatting.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/formatting.rs')
-rw-r--r--src/formatting.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/formatting.rs b/src/formatting.rs
index 879ddc61b13..ee44549b2bc 100644
--- a/src/formatting.rs
+++ b/src/formatting.rs
@@ -235,7 +235,8 @@ impl<'b, T: Write + 'b> FormatHandler for Session<'b, T> {
         report: &mut FormatReport,
     ) -> Result<(), ErrorKind> {
         if let Some(ref mut out) = self.out {
-            match source_file::write_file(Some(source_map), &path, &result, out, &*self.emitter) {
+            match source_file::write_file(Some(source_map), &path, &result, out, &mut *self.emitter)
+            {
                 Ok(ref result) if result.has_diff => report.add_diff(),
                 Err(e) => {
                     // Create a new error with path_str to help users see which files failed