mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 23:27:24 +00:00
Use idiomatic way of defining floats
This commit is contained in:
parent
083035fd06
commit
f0b58fd1fa
1 changed files with 2 additions and 2 deletions
|
@ -733,7 +733,7 @@ fn send_startup_progress(
|
|||
title: "rust-analyzer".into(),
|
||||
cancellable: None,
|
||||
message: Some(format!("{}/{} packages", progress, total)),
|
||||
percentage: Some(100 as f64 * progress as f64 / total as f64),
|
||||
percentage: Some(100.0 * progress as f64 / total as f64),
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
@ -742,7 +742,7 @@ fn send_startup_progress(
|
|||
WorkDoneProgress::Report(WorkDoneProgressReport {
|
||||
cancellable: None,
|
||||
message: Some(format!("{}/{} packages", progress, total)),
|
||||
percentage: Some(100 as f64 * progress as f64 / total as f64),
|
||||
percentage: Some(100.0 * progress as f64 / total as f64),
|
||||
}),
|
||||
),
|
||||
(_, true) => send_startup_progress_notif(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue