From ad85267c5fc40b222f3468d5856ee4e82caa39fd Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Mon, 15 Aug 2022 14:04:20 -0700 Subject: [PATCH] chore: fix `clippy::borrow_deref_ref` lints (#2277) This fixes new Clippy lints introduced in the latest Rust version. * chore: fix `clippy::borrow_deref_ref` lints * chore: fix `clippy::partial_eq_without_eq` lint --- tracing-core/src/dispatcher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracing-core/src/dispatcher.rs b/tracing-core/src/dispatcher.rs index a3661817c0..c87c1d6c54 100644 --- a/tracing-core/src/dispatcher.rs +++ b/tracing-core/src/dispatcher.rs @@ -631,14 +631,14 @@ impl Dispatch { /// `T`. #[inline] pub fn is(&self) -> bool { - ::is::(&*self.subscriber) + ::is::(&self.subscriber) } /// Returns some reference to the `Subscriber` this `Dispatch` forwards to /// if it is of type `T`, or `None` if it isn't. #[inline] pub fn downcast_ref(&self) -> Option<&T> { - ::downcast_ref(&*self.subscriber) + ::downcast_ref(&self.subscriber) } }