]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rustfmt/src/source_file.rs
Merge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt
[rust.git] / src / tools / rustfmt / src / source_file.rs
index 5a9a2cbd80c7ec3132e93c054fc7ed1849dd10be..853336004d8b1a477c67d0adc75b792d5f1f9a05 100644 (file)
@@ -18,7 +18,7 @@
 
 // Append a newline to the end of each file.
 pub(crate) fn append_newline(s: &mut String) {
-    s.push_str("\n");
+    s.push('\n');
 }
 
 #[cfg(test)]