Skip to content

Commit

Permalink
fix: clippy error, whitelist blocks_in_conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Dori Medini <dori@starkware.co>
  • Loading branch information
dorimedini-starkware committed Jul 11, 2024
1 parent adeb39b commit fa5aedc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/papyrus_monitoring_gateway/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ async fn node_config_by_secret(
async fn metrics(prometheus_handle: Option<PrometheusHandle>) -> Response {
match prometheus_handle {
Some(handle) => {
Collector::default().prefix(PROCESS_METRICS_PREFIX).collect();
Collector::new(PROCESS_METRICS_PREFIX).collect();
handle.render().into_response()
}
None => StatusCode::METHOD_NOT_ALLOWED.into_response(),
Expand Down
2 changes: 1 addition & 1 deletion scripts/clippy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

cargo clippy "$@" --all-targets --all-features
cargo clippy "$@" --all-targets --all-features -- -Aclippy::blocks_in_conditions

0 comments on commit fa5aedc

Please sign in to comment.