Skip to content

Commit 76f34a1

Browse files
committed
Improve formatting of analyzer status text
1 parent 3232fd5 commit 76f34a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rust-analyzer/src/main_loop/handlers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ use crate::{
4646
pub fn handle_analyzer_status(world: WorldSnapshot, _: ()) -> Result<String> {
4747
let _p = profile("handle_analyzer_status");
4848
let mut buf = world.status();
49-
format_to!(buf, "\n\nrequests:");
49+
format_to!(buf, "\n\nrequests:\n");
5050
let requests = world.latest_requests.read();
5151
for (is_last, r) in requests.iter() {
5252
let mark = if is_last { "*" } else { " " };
53-
format_to!(buf, "{}{:4} {:<36}{}ms", mark, r.id, r.method, r.duration.as_millis());
53+
format_to!(buf, "{}{:4} {:<36}{}ms\n", mark, r.id, r.method, r.duration.as_millis());
5454
}
5555
Ok(buf)
5656
}

0 commit comments

Comments
 (0)