Skip to content

Commit 9673793

Browse files
committed
Remove last traces of defmt-03
1 parent 00c7cd4 commit 9673793

File tree

8 files changed

+6
-14
lines changed

8 files changed

+6
-14
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
cargo build
3737
--workspace
3838
--target thumbv7m-none-eabi
39-
--features async,defmt-03,embedded-io/defmt,embedded-io-async/defmt
39+
--features async,defmt,embedded-io/defmt,embedded-io-async/defmt
4040
4141
msrv-1-81:
4242
runs-on: ubuntu-latest

embedded-hal-bus/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
#![cfg_attr(not(feature = "std"), no_std)]
44
#![cfg_attr(docsrs, feature(doc_cfg))]
55

6-
// needed to prevent defmt macros from breaking, since they emit code that does `defmt::blahblah`.
7-
#[cfg(feature = "defmt")]
8-
use defmt;
9-
106
pub mod i2c;
117
pub mod spi;
128
pub mod util;

embedded-hal-bus/src/spi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub use rc::*;
2626
pub use self::critical_section::*;
2727

2828
#[cfg(feature = "defmt")]
29-
use crate::defmt;
29+
use defmt;
3030

3131
/// Error type for [`ExclusiveDevice`] operations.
3232
#[derive(Copy, Clone, Eq, PartialEq, Debug)]

embedded-hal/src/digital.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use core::ops::Not;
44

55
#[cfg(feature = "defmt")]
6-
use crate::defmt;
6+
use defmt;
77

88
/// Error.
99
pub trait Error: core::fmt::Debug {

embedded-hal/src/i2c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
use crate::private;
165165

166166
#[cfg(feature = "defmt")]
167-
use crate::defmt;
167+
use defmt;
168168

169169
/// I2C error.
170170
pub trait Error: core::fmt::Debug {

embedded-hal/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,3 @@ mod private {
1515
impl Sealed for SevenBitAddress {}
1616
impl Sealed for TenBitAddress {}
1717
}
18-
19-
// needed to prevent defmt macros from breaking, since they emit code that does `defmt::blahblah`.
20-
#[cfg(feature = "defmt")]
21-
use defmt;

embedded-hal/src/pwm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Pulse Width Modulation (PWM) traits.
22
33
#[cfg(feature = "defmt")]
4-
use crate::defmt;
4+
use defmt;
55

66
/// Error
77
pub trait Error: core::fmt::Debug {

embedded-hal/src/spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
use core::fmt::Debug;
175175

176176
#[cfg(feature = "defmt")]
177-
use crate::defmt;
177+
use defmt;
178178

179179
/// Clock polarity.
180180
#[derive(Clone, Copy, Debug, PartialEq, Eq)]

0 commit comments

Comments
 (0)