mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
style: simplify string interpolation
This commit is contained in:
parent
b32f181f47
commit
7c34eb3880
43 changed files with 71 additions and 78 deletions
|
@ -288,7 +288,7 @@ impl FlycheckActor {
|
|||
Some(c) => c,
|
||||
None => continue,
|
||||
};
|
||||
let formatted_command = format!("{:?}", command);
|
||||
let formatted_command = format!("{command:?}");
|
||||
|
||||
tracing::debug!(?command, "will restart flycheck");
|
||||
let (sender, receiver) = unbounded();
|
||||
|
@ -301,8 +301,7 @@ impl FlycheckActor {
|
|||
}
|
||||
Err(error) => {
|
||||
self.report_progress(Progress::DidFailToRestart(format!(
|
||||
"Failed to run the following command: {} error={}",
|
||||
formatted_command, error
|
||||
"Failed to run the following command: {formatted_command} error={error}"
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
@ -313,7 +312,7 @@ impl FlycheckActor {
|
|||
// Watcher finished
|
||||
let command_handle = self.command_handle.take().unwrap();
|
||||
self.command_receiver.take();
|
||||
let formatted_handle = format!("{:?}", command_handle);
|
||||
let formatted_handle = format!("{command_handle:?}");
|
||||
|
||||
let res = command_handle.join();
|
||||
if let Err(error) = &res {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue