From 66af53593fd23acef4a6e821f29acde4d74dbdcb Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 12 Nov 2021 17:49:01 +0100 Subject: small lint fixes --- src/event.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event.rs b/src/event.rs index 51d6699..4d02fe7 100644 --- a/src/event.rs +++ b/src/event.rs @@ -389,7 +389,7 @@ impl TryFrom<&raw::CbtEvent> for Event { targetable: raw_event.dst_agent != 0, }, CbtStateChange::Error => { - let data = get_error_bytes(&raw_event); + let data = get_error_bytes(raw_event); EventKind::Error { text: raw::cstr_up_to_nul(&data) .ok_or(FromRawEventError::InvalidText)? diff --git a/src/lib.rs b/src/lib.rs index c950b17..293be64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -233,7 +233,7 @@ impl Log { /// Return an analyzer suitable to analyze the given log. pub fn analyzer<'s>(&'s self) -> Option> { - analyzers::for_log(&self) + analyzers::for_log(self) } /// Return all events present in this log. -- cgit v1.2.3