Skip to content

Commit

Permalink
remove unnecessary castg
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyandrews authored and slashrsm committed Jan 26, 2023
1 parent a2c9caf commit ec20d3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3435,7 +3435,7 @@ impl GooseAttack {
count: aggregate_count,
response_time_average: format!(
"{:.2}",
aggregate_response_time_counter as f32 / aggregate_count as f32
aggregate_response_time_counter / aggregate_count as f32
),
response_time_minimum: aggregate_scenario_time_minimum,
response_time_maximum: aggregate_scenario_time_maximum,
Expand Down
2 changes: 1 addition & 1 deletion tests/redirect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ fn setup_mock_server_endpoints<'a>(
server.mock(|when, then| {
when.method(GET).path(REDIRECT_PATH);
then.status(301)
.header("Location", &server2.unwrap().url(INDEX_PATH));
.header("Location", server2.unwrap().url(INDEX_PATH));
}),
// Next set up INDEX_PATH on server 2, store in vector at SERVER2_INDEX_KEY.
server2.unwrap().mock(|when, then| {
Expand Down

0 comments on commit ec20d3c

Please sign in to comment.