From 9ae13eb5da4f78beaf9df6a636db45227c4341f1 Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Thu, 20 May 2021 12:21:15 +0200 Subject: [PATCH] clippy --- libafl/src/observers/cmp.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libafl/src/observers/cmp.rs b/libafl/src/observers/cmp.rs index 4f0cd4c18d..0ae3cf4db5 100644 --- a/libafl/src/observers/cmp.rs +++ b/libafl/src/observers/cmp.rs @@ -37,10 +37,10 @@ impl CmpValues { pub fn to_u64_tuple(&self) -> Option<(u64, u64)> { match self { - CmpValues::U8(t) => Some((t.0 as u64, t.1 as u64)), - CmpValues::U16(t) => Some((t.0 as u64, t.1 as u64)), - CmpValues::U32(t) => Some((t.0 as u64, t.1 as u64)), - CmpValues::U64(t) => Some((t.0 as u64, t.1 as u64)), + CmpValues::U8(t) => Some((u64::from(t.0), u64::from(t.1))), + CmpValues::U16(t) => Some((u64::from(t.0), u64::from(t.1))), + CmpValues::U32(t) => Some((u64::from(t.0), u64::from(t.1))), + CmpValues::U64(t) => Some((u64::from(t.0), u64::from(t.1))), _ => None, } }