Fix warnings.

This commit is contained in:
Dario Nieuwenhuis 2021-03-01 00:23:54 +01:00
parent ffab3916f4
commit 8a641d1312
3 changed files with 4 additions and 6 deletions

View file

@ -17,8 +17,8 @@ defmt-error = []
[dependencies] [dependencies]
embassy = { version = "0.1.0", path = "../embassy", features = ["defmt"] } embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] }
embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt", "52840"] } embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt", "defmt-trace", "52840"] }
defmt = "0.2.0" defmt = "0.2.0"
defmt-rtt = "0.2.0" defmt-rtt = "0.2.0"

View file

@ -1,11 +1,10 @@
use core::future::Future; use core::future::Future;
use core::pin::Pin; use core::pin::Pin;
use core::sync::atomic::{compiler_fence, Ordering};
use core::task::Poll; use core::task::Poll;
use crate::fmt::{assert, assert_eq, *}; use crate::fmt::{assert, assert_eq, *};
use crate::hal::gpio::{Output, Pin as GpioPin, Port as GpioPort, PushPull}; use crate::hal::gpio::{Output, Pin as GpioPin, Port as GpioPort, PushPull};
use crate::interrupt::{self, Interrupt}; use crate::interrupt::{self};
use crate::pac::QSPI; use crate::pac::QSPI;
pub use crate::pac::qspi::ifconfig0::ADDRMODE_A as AddressMode; pub use crate::pac::qspi::ifconfig0::ADDRMODE_A as AddressMode;
@ -258,7 +257,7 @@ impl Qspi {
fn wait_ready<'a>(mut self: Pin<&'a mut Self>) -> impl Future<Output = ()> + 'a { fn wait_ready<'a>(mut self: Pin<&'a mut Self>) -> impl Future<Output = ()> + 'a {
poll_fn(move |cx| { poll_fn(move |cx| {
self.as_mut().inner().with(|s, irq| { self.as_mut().inner().with(|s, _irq| {
if s.inner.events_ready.read().bits() != 0 { if s.inner.events_ready.read().bits() != 0 {
return Poll::Ready(()); return Poll::Ready(());
} }

View file

@ -1,4 +1,3 @@
use core::array::IntoIter;
use core::cell::UnsafeCell; use core::cell::UnsafeCell;
use core::marker::{PhantomData, PhantomPinned}; use core::marker::{PhantomData, PhantomPinned};
use core::mem::MaybeUninit; use core::mem::MaybeUninit;