Skip to content

Commit 488dfa2

Browse files
committed
More fixes related to feature gating.
1 parent c497d27 commit 488dfa2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/format/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,14 @@ impl<'a> defmt::Format for Item<'a> {
370370
fn format(&self, f: defmt::Formatter) {
371371
match self {
372372
Item::Literal(v) => defmt::write!(f, "Literal {{ {} }}", v),
373+
#[cfg(feature = "alloc")]
374+
Item::OwnedLiteral(_) => {},
373375
Item::Space(v) => defmt::write!(f, "Space {{ {} }}", v),
376+
#[cfg(feature = "alloc")]
377+
Item::OwnedSpace(_) => {},
374378
Item::Numeric(u, v) => defmt::write!(f, "Numeric {{ {}, {} }}", u, v),
375379
Item::Fixed(v) => defmt::write!(f, "Fixed {{ {} }}", v),
376380
Item::Error => defmt::write!(f, "Error"),
377-
_ => {}
378381
}
379382
}
380383
}

0 commit comments

Comments
 (0)