mirror of
https://github.com/urbit/ares.git
synced 2024-11-26 09:57:56 +03:00
cargo: clippy
This commit is contained in:
parent
446efcd8d8
commit
840204391f
@ -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<F: FnMut() -> 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))),
|
||||
_ => {
|
||||
|
Loading…
Reference in New Issue
Block a user