This commit is contained in:
Andrea Fioraldi 2021-05-20 12:21:15 +02:00 committed by Omree
parent 69d87b3763
commit 9ae13eb5da

View File

@ -37,10 +37,10 @@ impl CmpValues {
pub fn to_u64_tuple(&self) -> Option<(u64, u64)> { pub fn to_u64_tuple(&self) -> Option<(u64, u64)> {
match self { match self {
CmpValues::U8(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((t.0 as u64, t.1 as u64)), CmpValues::U16(t) => Some((u64::from(t.0), u64::from(t.1))),
CmpValues::U32(t) => Some((t.0 as u64, t.1 as u64)), CmpValues::U32(t) => Some((u64::from(t.0), u64::from(t.1))),
CmpValues::U64(t) => Some((t.0 as u64, t.1 as u64)), CmpValues::U64(t) => Some((u64::from(t.0), u64::from(t.1))),
_ => None, _ => None,
} }
} }