Get rid of some warnings

This commit is contained in:
Thales Fragoso
2021-02-13 21:41:36 -03:00
parent a7797a918d
commit b69f72e055
40 changed files with 194 additions and 228 deletions

View File

@ -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();
}

View File

@ -1,4 +1,4 @@
use crate::fmt::{assert, panic, todo, *};
use crate::fmt::{assert, *};
pub struct RingBuffer<'a> {
buf: &'a mut [u8],