Get rid of some warnings
This commit is contained in:
parent
c183c352c7
commit
a130499c9a
6 changed files with 2 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
||||||
#![no_std]
|
|
||||||
#![doc = "Peripheral access API (generated using svd2rust v0.17.0 (22741fa 2021-04-20))"]
|
#![doc = "Peripheral access API (generated using svd2rust v0.17.0 (22741fa 2021-04-20))"]
|
||||||
pub mod dma_v2 {
|
pub mod dma_v2 {
|
||||||
use crate::generic::*;
|
use crate::generic::*;
|
||||||
|
|
|
@ -19,13 +19,13 @@ pub enum Error {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Random<T: Instance> {
|
pub struct Random<T: Instance> {
|
||||||
inner: T,
|
_inner: T,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Instance> Random<T> {
|
impl<T: Instance> Random<T> {
|
||||||
pub fn new(inner: impl Unborrow<Target = T>) -> Self {
|
pub fn new(inner: impl Unborrow<Target = T>) -> Self {
|
||||||
unborrow!(inner);
|
unborrow!(inner);
|
||||||
let mut random = Self { inner };
|
let mut random = Self { _inner: inner };
|
||||||
random.reset();
|
random.reset();
|
||||||
random
|
random
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use core::future::Future;
|
use core::future::Future;
|
||||||
use core::pin::Pin;
|
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use core::future::Future;
|
use core::future::Future;
|
||||||
use core::pin::Pin;
|
|
||||||
|
|
||||||
/// Wait for a pin to become high.
|
/// Wait for a pin to become high.
|
||||||
pub trait WaitForHigh {
|
pub trait WaitForHigh {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
//! Async SPI API
|
//! Async SPI API
|
||||||
|
|
||||||
use core::future::Future;
|
use core::future::Future;
|
||||||
use core::pin::Pin;
|
|
||||||
|
|
||||||
/// Full duplex (master mode)
|
/// Full duplex (master mode)
|
||||||
///
|
///
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use core::future::Future;
|
use core::future::Future;
|
||||||
use core::pin::Pin;
|
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
|
|
Loading…
Reference in a new issue