Skip to content

chore(instrumentation): Reduce noise from instrumented functions #115

chore(instrumentation): Reduce noise from instrumented functions

chore(instrumentation): Reduce noise from instrumented functions #115

Triggered via pull request March 20, 2025 12:47
Status Failure
Total duration 3m 45s
Artifacts

pr_pre-commit.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors
[clippy] rust/stackable-cockpit/src/platform/operator/mod.rs#L187: rust/stackable-cockpit/src/platform/operator/mod.rs#L187
error: redundant closure --> rust/stackable-cockpit/src/platform/operator/mod.rs:187:45 | 187 | version = self.version.as_ref().map(|v| tracing::field::display(v)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `tracing::field::display` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `-D clippy::redundant-closure` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::redundant_closure)]`
[clippy] rust/stackable-cockpit/src/platform/operator/mod.rs#L187: rust/stackable-cockpit/src/platform/operator/mod.rs#L187
error: redundant closure --> rust/stackable-cockpit/src/platform/operator/mod.rs:187:45 | 187 | version = self.version.as_ref().map(|v| tracing::field::display(v)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `tracing::field::display` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `-D clippy::redundant-closure` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::redundant_closure)]`
[clippy] rust/stackable-cockpit/src/platform/stack/spec.rs#L159: rust/stackable-cockpit/src/platform/stack/spec.rs#L159
error: redundant closure --> rust/stackable-cockpit/src/platform/stack/spec.rs:159:63 | 159 | demo_name = install_parameters.demo_name.as_ref().map(|v| tracing::field::display(v)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `tracing::field::display` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
[clippy] rust/stackable-cockpit/src/platform/stack/spec.rs#L159: rust/stackable-cockpit/src/platform/stack/spec.rs#L159
error: redundant closure --> rust/stackable-cockpit/src/platform/stack/spec.rs:159:63 | 159 | demo_name = install_parameters.demo_name.as_ref().map(|v| tracing::field::display(v)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `tracing::field::display` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
[clippy] rust/stackable-cockpit/src/platform/operator/mod.rs#L187: rust/stackable-cockpit/src/platform/operator/mod.rs#L187
error: redundant closure --> rust/stackable-cockpit/src/platform/operator/mod.rs:187:45 | 187 | version = self.version.as_ref().map(|v| tracing::field::display(v)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `tracing::field::display` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `-D clippy::redundant-closure` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::redundant_closure)]`
[clippy] rust/stackable-cockpit/src/platform/operator/mod.rs#L187: rust/stackable-cockpit/src/platform/operator/mod.rs#L187
error: redundant closure --> rust/stackable-cockpit/src/platform/operator/mod.rs:187:45 | 187 | version = self.version.as_ref().map(|v| tracing::field::display(v)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `tracing::field::display` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `-D clippy::redundant-closure` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::redundant_closure)]`
[clippy] rust/stackable-cockpit/src/platform/stack/spec.rs#L159: rust/stackable-cockpit/src/platform/stack/spec.rs#L159
error: redundant closure --> rust/stackable-cockpit/src/platform/stack/spec.rs:159:63 | 159 | demo_name = install_parameters.demo_name.as_ref().map(|v| tracing::field::display(v)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `tracing::field::display` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
[clippy] rust/stackable-cockpit/src/platform/stack/spec.rs#L159: rust/stackable-cockpit/src/platform/stack/spec.rs#L159
error: redundant closure --> rust/stackable-cockpit/src/platform/stack/spec.rs:159:63 | 159 | demo_name = install_parameters.demo_name.as_ref().map(|v| tracing::field::display(v)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `tracing::field::display` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
pre-commit
Process completed with exit code 1.