aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/rust-analyzer/src/main_loop.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index eb41e3cda..c38a25a44 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -733,7 +733,7 @@ fn send_startup_progress(
733 title: "rust-analyzer".into(), 733 title: "rust-analyzer".into(),
734 cancellable: None, 734 cancellable: None,
735 message: Some(format!("{}/{} packages", progress, total)), 735 message: Some(format!("{}/{} packages", progress, total)),
736 percentage: Some(100 as f64 * progress as f64 / total as f64), 736 percentage: Some(100.0 * progress as f64 / total as f64),
737 }), 737 }),
738 ); 738 );
739 } 739 }
@@ -742,7 +742,7 @@ fn send_startup_progress(
742 WorkDoneProgress::Report(WorkDoneProgressReport { 742 WorkDoneProgress::Report(WorkDoneProgressReport {
743 cancellable: None, 743 cancellable: None,
744 message: Some(format!("{}/{} packages", progress, total)), 744 message: Some(format!("{}/{} packages", progress, total)),
745 percentage: Some(100 as f64 * progress as f64 / total as f64), 745 percentage: Some(100.0 * progress as f64 / total as f64),
746 }), 746 }),
747 ), 747 ),
748 (_, true) => send_startup_progress_notif( 748 (_, true) => send_startup_progress_notif(