mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Improve formatting of analyzer status text
This commit is contained in:
parent
3232fd5179
commit
76f34a15e6
1 changed files with 2 additions and 2 deletions
|
@ -46,11 +46,11 @@ use crate::{
|
|||
pub fn handle_analyzer_status(world: WorldSnapshot, _: ()) -> Result<String> {
|
||||
let _p = profile("handle_analyzer_status");
|
||||
let mut buf = world.status();
|
||||
format_to!(buf, "\n\nrequests:");
|
||||
format_to!(buf, "\n\nrequests:\n");
|
||||
let requests = world.latest_requests.read();
|
||||
for (is_last, r) in requests.iter() {
|
||||
let mark = if is_last { "*" } else { " " };
|
||||
format_to!(buf, "{}{:4} {:<36}{}ms", mark, r.id, r.method, r.duration.as_millis());
|
||||
format_to!(buf, "{}{:4} {:<36}{}ms\n", mark, r.id, r.method, r.duration.as_millis());
|
||||
}
|
||||
Ok(buf)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue