Skip to content
Snippets Groups Projects
Commit 537ff61e authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix a let_and_return lint violation that had somehow slipped in.

parent 700e4918
No related branches found
No related tags found
No related merge requests found
......@@ -38,9 +38,7 @@ impl BootstrapStatus {
/// 0 is defined as "just started"; 1 is defined as "ready to use."
pub fn as_frac(&self) -> f32 {
// Coefficients chosen arbitrarily.
let res =
self.conn_status.frac() * 0.15 + self.dir_status.frac_at(SystemTime::now()) * 0.85;
res
self.conn_status.frac() * 0.15 + self.dir_status.frac_at(SystemTime::now()) * 0.85
}
/// Return true if the status indicates that the client is ready for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment