diff --git a/plugin/handlers_rust/commands/rustfmt.py b/plugin/handlers_rust/commands/rustfmt.py index 0d38bcf..73423b7 100644 --- a/plugin/handlers_rust/commands/rustfmt.py +++ b/plugin/handlers_rust/commands/rustfmt.py @@ -69,7 +69,9 @@ def rustfmt(self): output = output.decode('utf8') err = err.decode('utf8') - result = output + header = 'Using rustfmt config file ' + result = '\n'.join( + [l for l in output.splitlines() if not l.startswith(header)]) # delete temporary file if os.path.exists(self.filename):