Skip to content

Commit

Permalink
Fix new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Mar 21, 2024
1 parent c6e3c85 commit 9e6453f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion foundations/src/telemetry/log/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::sync::Arc;
pub(crate) type SharedLog = Arc<parking_lot::RwLock<Logger>>;

#[must_use]
pub(crate) struct LogScope(Scope<SharedLog>);
pub(crate) struct LogScope(#[allow(dead_code)] Scope<SharedLog>);

impl LogScope {
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion foundations/src/telemetry/scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where
T: Send + Clone + 'static,
{
pub(crate) fn current(&self) -> Option<T> {
self.0.get_or_default().borrow().last().map(Clone::clone)
self.0.get_or_default().borrow().last().cloned()
}
}

Expand Down
2 changes: 1 addition & 1 deletion foundations/src/telemetry/tracing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub use foundations_macros::span_fn;
///
/// Scope ends when the handle is dropped.
#[must_use]
pub struct SpanScope(Scope<SharedSpan>);
pub struct SpanScope(#[allow(dead_code)] Scope<SharedSpan>);

impl SpanScope {
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion foundations/src/telemetry/tracing/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pub struct TestTraceOptions {
}

#[must_use]
pub(crate) struct TestTracerScope(Scope<Tracer>);
pub(crate) struct TestTracerScope(#[allow(dead_code)] Scope<Tracer>);

impl TestTracerScope {
#[inline]
Expand Down

0 comments on commit 9e6453f

Please sign in to comment.