Skip to content

Commit

Permalink
BytesPs is Copy, no need to .clone()
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey committed Jun 11, 2024
1 parent cfc884a commit 419b273
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions coverage_point_calculator/tests/coverage_point_calculator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ impl BoostedHexMap for NoBoostedHexes {
}

fn speedtests(tier: SpeedtestTier) -> Vec<Speedtest> {
// SpeedtestTier is determined solely by upload_speed.
// Other values are far surpassing ::Good.
let upload_speed = BytesPs::mbps(match tier {
SpeedtestTier::Good => 10,
SpeedtestTier::Acceptable => 8,
Expand All @@ -414,13 +416,13 @@ fn speedtests(tier: SpeedtestTier) -> Vec<Speedtest> {

vec![
Speedtest {
upload_speed: upload_speed.clone(),
upload_speed,
download_speed: BytesPs::mbps(150),
latency_millis: 0,
timestamp: Utc::now(),
},
Speedtest {
upload_speed: upload_speed.clone(),
upload_speed,
download_speed: BytesPs::mbps(150),
latency_millis: 0,
timestamp: Utc::now(),
Expand Down

0 comments on commit 419b273

Please sign in to comment.