Get rid of some warnings
This commit is contained in:
@ -68,7 +68,7 @@ impl<S: PeripheralState> PeripheralMutex<S> {
|
||||
|
||||
impl<S: PeripheralState> Drop for PeripheralMutex<S> {
|
||||
fn drop(&mut self) {
|
||||
if let Some((state, irq)) = &mut self.inner {
|
||||
if let Some((_state, irq)) = &mut self.inner {
|
||||
irq.disable();
|
||||
irq.remove_handler();
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::fmt::{assert, panic, todo, *};
|
||||
use crate::fmt::{assert, *};
|
||||
|
||||
pub struct RingBuffer<'a> {
|
||||
buf: &'a mut [u8],
|
||||
|
Reference in New Issue
Block a user