]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check_unused.rs
A few cleanups and minor improvements to typeck
[rust.git] / src / librustc_typeck / check_unused.rs
index 5967bd1ba3eea9dcd93cf23e930083c642aa6198..d9dee917b01e47446f63277ba6257ce30a9cc2f8 100644 (file)
@@ -75,7 +75,7 @@ fn check_import(&self, id: ast::NodeId, span: Span) {
         let msg = if let Ok(snippet) = self.tcx.sess.source_map().span_to_snippet(span) {
             format!("unused import: `{}`", snippet)
         } else {
-            "unused import".to_string()
+            "unused import".to_owned()
         };
         self.tcx.lint_node(lint::builtin::UNUSED_IMPORTS, id, span, &msg);
     }