Skip to content

Commit 602850a

Browse files
committed
chore(instrumentation): Fix clippy lints
1 parent 6b9a0ad commit 602850a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/stackable-cockpit/src/platform/operator/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl OperatorSpec {
184184
// NOTE (@NickLarsenNZ): Option doesn't impl Display, so we need to call
185185
// display for the inner type if it exists. Otherwise we gte the Debug
186186
// impl for the whole Option.
187-
version = self.version.as_ref().map(|v| tracing::field::display(v)),
187+
version = self.version.as_ref().map(tracing::field::display),
188188
))]
189189
pub fn install(
190190
&self,

rust/stackable-cockpit/src/platform/stack/spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl StackSpec {
156156
// NOTE (@NickLarsenNZ): Option doesn't impl Display, so we need to call
157157
// display for the inner type if it exists. Otherwise we gte the Debug
158158
// impl for the whole Option.
159-
demo_name = install_parameters.demo_name.as_ref().map(|v| tracing::field::display(v)),
159+
demo_name = install_parameters.demo_name.as_ref().map(tracing::field::display),
160160
))]
161161
pub async fn install(
162162
&self,

0 commit comments

Comments
 (0)