about summary refs log tree commit diff
path: root/compiler/rustc_log
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-10 18:08:25 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2023-02-10 18:08:25 +0100
commit5201bb53bbdc24a35cb9aac5797187f677decd36 (patch)
tree117087e5cce3b096654e18406177054fb470c239 /compiler/rustc_log
parentd1ac43a9b9a8250d858705b0796dfed6186e18db (diff)
downloadrust-5201bb53bbdc24a35cb9aac5797187f677decd36.tar.gz
rust-5201bb53bbdc24a35cb9aac5797187f677decd36.zip
remove redundant clones
Diffstat (limited to 'compiler/rustc_log')
-rw-r--r--compiler/rustc_log/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_log/src/lib.rs b/compiler/rustc_log/src/lib.rs
index 019fdc30dce..12d6281daad 100644
--- a/compiler/rustc_log/src/lib.rs
+++ b/compiler/rustc_log/src/lib.rs
@@ -98,7 +98,7 @@ pub fn init_env_logger(env: &str) -> Result<(), Error> {
             let fmt_layer = tracing_subscriber::fmt::layer()
                 .with_writer(io::stderr)
                 .without_time()
-                .event_format(BacktraceFormatter { backtrace_target: str.to_string() });
+                .event_format(BacktraceFormatter { backtrace_target: str });
             let subscriber = subscriber.with(fmt_layer);
             tracing::subscriber::set_global_default(subscriber).unwrap();
         }