mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Rollup merge of #107895 - matthiaskrgr:cl, r=compiler-errors
remove redundant clones
This commit is contained in:
commit
4b7b5698a4
@ -203,7 +203,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
self.src_archives.push((archive_path.to_owned(), archive_map));
|
||||
self.src_archives.push((archive_path, archive_map));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -847,9 +847,7 @@ impl<'a> Parser<'a> {
|
||||
0,
|
||||
ParseError {
|
||||
description: "expected format parameter to occur after `:`".to_owned(),
|
||||
note: Some(
|
||||
format!("`?` comes after `:`, try `{}:{}` instead", word, "?").to_owned(),
|
||||
),
|
||||
note: Some(format!("`?` comes after `:`, try `{}:{}` instead", word, "?")),
|
||||
label: "expected `?` to occur after `:`".to_owned(),
|
||||
span: pos.to(pos),
|
||||
secondary_label: None,
|
||||
|
Loading…
Reference in New Issue
Block a user