mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
fmt: disable "unused" warnings.
This commit is contained in:
parent
7c2aae88da
commit
3d842dac85
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -83,14 +83,17 @@ macro_rules! todo {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(feature = "defmt"))]
|
||||||
macro_rules! unreachable {
|
macro_rules! unreachable {
|
||||||
($($x:tt)*) => {
|
($($x:tt)*) => {
|
||||||
{
|
::core::unreachable!($($x)*)
|
||||||
#[cfg(not(feature = "defmt"))]
|
};
|
||||||
::core::unreachable!($($x)*);
|
}
|
||||||
#[cfg(feature = "defmt")]
|
|
||||||
::defmt::unreachable!($($x)*);
|
#[cfg(feature = "defmt")]
|
||||||
}
|
macro_rules! unreachable {
|
||||||
|
($($x:tt)*) => {
|
||||||
|
::defmt::unreachable!($($x)*)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,7 +116,7 @@ macro_rules! trace {
|
|||||||
#[cfg(feature = "defmt")]
|
#[cfg(feature = "defmt")]
|
||||||
::defmt::trace!($s $(, $x)*);
|
::defmt::trace!($s $(, $x)*);
|
||||||
#[cfg(not(any(feature = "log", feature="defmt")))]
|
#[cfg(not(any(feature = "log", feature="defmt")))]
|
||||||
let _ignored = ($( & $x ),*);
|
let _ = ($( & $x ),*);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -126,7 +129,7 @@ macro_rules! debug {
|
|||||||
#[cfg(feature = "defmt")]
|
#[cfg(feature = "defmt")]
|
||||||
::defmt::debug!($s $(, $x)*);
|
::defmt::debug!($s $(, $x)*);
|
||||||
#[cfg(not(any(feature = "log", feature="defmt")))]
|
#[cfg(not(any(feature = "log", feature="defmt")))]
|
||||||
let _ignored = ($( & $x ),*);
|
let _ = ($( & $x ),*);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -139,7 +142,7 @@ macro_rules! info {
|
|||||||
#[cfg(feature = "defmt")]
|
#[cfg(feature = "defmt")]
|
||||||
::defmt::info!($s $(, $x)*);
|
::defmt::info!($s $(, $x)*);
|
||||||
#[cfg(not(any(feature = "log", feature="defmt")))]
|
#[cfg(not(any(feature = "log", feature="defmt")))]
|
||||||
let _ignored = ($( & $x ),*);
|
let _ = ($( & $x ),*);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -152,7 +155,7 @@ macro_rules! warn {
|
|||||||
#[cfg(feature = "defmt")]
|
#[cfg(feature = "defmt")]
|
||||||
::defmt::warn!($s $(, $x)*);
|
::defmt::warn!($s $(, $x)*);
|
||||||
#[cfg(not(any(feature = "log", feature="defmt")))]
|
#[cfg(not(any(feature = "log", feature="defmt")))]
|
||||||
let _ignored = ($( & $x ),*);
|
let _ = ($( & $x ),*);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -165,7 +168,7 @@ macro_rules! error {
|
|||||||
#[cfg(feature = "defmt")]
|
#[cfg(feature = "defmt")]
|
||||||
::defmt::error!($s $(, $x)*);
|
::defmt::error!($s $(, $x)*);
|
||||||
#[cfg(not(any(feature = "log", feature="defmt")))]
|
#[cfg(not(any(feature = "log", feature="defmt")))]
|
||||||
let _ignored = ($( & $x ),*);
|
let _ = ($( & $x ),*);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -226,7 +229,7 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#![macro_use]
|
#![macro_use]
|
||||||
#![allow(unused_macros)]
|
#![allow(unused)]
|
||||||
|
|
||||||
use core::fmt::{Debug, Display, LowerHex};
|
use core::fmt::{Debug, Display, LowerHex};
|
||||||
|
|
||||||
@ -229,7 +229,6 @@ impl<T, E> Try for Result<T, E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
pub(crate) struct Bytes<'a>(pub &'a [u8]);
|
||||||
|
|
||||||
impl<'a> Debug for Bytes<'a> {
|
impl<'a> Debug for Bytes<'a> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user