From 840204391fe4bf5ccbf1bf209d69472531efb5bf Mon Sep 17 00:00:00 2001 From: Matthew LeVan Date: Fri, 16 Feb 2024 13:45:03 -0500 Subject: [PATCH] cargo: clippy --- rust/ares/src/guard.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust/ares/src/guard.rs b/rust/ares/src/guard.rs index 4ac09d4..794ec17 100644 --- a/rust/ares/src/guard.rs +++ b/rust/ares/src/guard.rs @@ -2,7 +2,6 @@ use crate::interpreter::{Error, Mote, Result}; use crate::noun::D; use ares_guard::*; use assert_no_alloc::permit_alloc; -use std::convert::TryFrom; use std::ffi::c_void; use std::marker::PhantomData; @@ -88,7 +87,7 @@ pub fn call_with_guard Result>( *result_box }) } else { - let err = GuardError::from(u32::try_from(res).unwrap()); + let err = GuardError::from(res); match err { GuardError::OutOfMemory => Err(Error::NonDeterministic(Mote::Meme, D(0))), _ => {