aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorSteffen Lyngbaek <[email protected]>2020-03-13 23:27:39 +0000
committerSteffen Lyngbaek <[email protected]>2020-03-13 23:27:39 +0000
commitf0b58fd1fa93bf8d9c201e891528be1b1cc54512 (patch)
tree4deb90cc5388d9d1df7f86ebad514dcad2399451 /crates
parent083035fd06d27487a976953ede615c4fa1755988 (diff)
Use idiomatic way of defining floats
Diffstat (limited to 'crates')
-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(