mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Clippy perf warnings
This commit is contained in:
parent
9e437b2642
commit
4b7f473223
3 changed files with 3 additions and 4 deletions
|
@ -204,8 +204,7 @@ impl GlobalState {
|
|||
if let Some((method, start)) = self.req_queue.incoming.complete(response.id.clone()) {
|
||||
let duration = start.elapsed();
|
||||
log::info!("handled req#{} in {:?}", response.id, duration);
|
||||
let metrics =
|
||||
RequestMetrics { id: response.id.clone(), method: method.to_string(), duration };
|
||||
let metrics = RequestMetrics { id: response.id.clone(), method, duration };
|
||||
self.latest_requests.write().record(metrics);
|
||||
self.send(response.into());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue