changeset 6692:e6d4d05acd27

refactor: uneeded string conversion for Display type
author Rolo <roloedits@gmail.com>
date Thu, 03 Apr 2025 14:35:35 -0700
parents 0fd49e215221
children bceab2105f9e
files helix-view/src/document.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/helix-view/src/document.rs	Sun Apr 06 12:02:20 2025 -0500
+++ b/helix-view/src/document.rs	Thu Apr 03 14:35:35 2025 -0700
@@ -854,7 +854,7 @@
                 } else if !output.stderr.is_empty() {
                     log::debug!(
                         "Formatter printed to stderr: {}",
-                        String::from_utf8_lossy(&output.stderr).to_string()
+                        String::from_utf8_lossy(&output.stderr)
                     );
                 }