diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-11-12 17:49:01 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-11-12 17:49:01 +0100 |
commit | 66af53593fd23acef4a6e821f29acde4d74dbdcb (patch) | |
tree | 321c4f8e2da8358adb3353429e968329fbc1d1a5 /src/event.rs | |
parent | 6f049aa5e1524169b302db4c6b8b9f5edb82df87 (diff) | |
download | evtclib-66af53593fd23acef4a6e821f29acde4d74dbdcb.tar.gz evtclib-66af53593fd23acef4a6e821f29acde4d74dbdcb.tar.bz2 evtclib-66af53593fd23acef4a6e821f29acde4d74dbdcb.zip |
small lint fixes
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 2 |
1 files changed, 1 insertions, 1 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)? |