mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
cleanup warnings in ifram
This commit is contained in:
parent
faa867e63d
commit
8d729cee01
1 changed files with 5 additions and 3 deletions
|
|
@ -1,4 +1,6 @@
|
|||
use xous::{send_message, MemoryRange, Message, Result};
|
||||
#[cfg(feature = "std")]
|
||||
use xous::Result;
|
||||
use xous::{send_message, MemoryRange, Message};
|
||||
|
||||
pub enum IframBank {
|
||||
Bank0,
|
||||
|
|
@ -147,12 +149,12 @@ impl Drop for IframRange {
|
|||
),
|
||||
) {
|
||||
Ok(_) => (),
|
||||
Err(e) => {
|
||||
Err(_e) => {
|
||||
// This probably never happens, but also probably doesn't need to be a hard-panic
|
||||
// if it does happen because it simply degrades performance; it does not impact
|
||||
// correctness.
|
||||
#[cfg(feature = "std")]
|
||||
log::error!("Couldn't de-allocate IframRange: {:?}, IFRAM memory is leaking!", e)
|
||||
log::error!("Couldn't de-allocate IframRange: {:?}, IFRAM memory is leaking!", _e)
|
||||
}
|
||||
}
|
||||
// de-allocate myself. It's unsafe because we are responsible to make sure nobody else is using
|
||||
|
|
|
|||
Loading…
Reference in a new issue