Rollup merge of #107895 - matthiaskrgr:cl, r=compiler-errors

remove redundant clones
This commit is contained in:
Matthias Krüger 2023-02-11 17:18:44 +01:00 committed by GitHub
commit 4b7b5698a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -92,7 +92,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();
}