Skip to content

Commit

Permalink
Use fully qualified defmt::unreachable!() in macros. Fixes #638.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Nov 26, 2021
1 parent 3914fc3 commit ebcc6da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion macros/src/derives/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub(crate) fn expand(input: TokenStream) -> TokenStream {
quote!(
impl #impl_generics defmt::Format for #ident #type_generics #where_clause {
fn format(&self, f: defmt::Formatter) {
unreachable!()
defmt::unreachable!()
}

fn _format_tag() -> defmt::Str {
Expand Down
2 changes: 1 addition & 1 deletion macros/src/items/bitflags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub(crate) fn expand(input: TokenStream) -> TokenStream {

impl defmt::Format for #ident {
fn format(&self, f: defmt::Formatter) {
unreachable!()
defmt::unreachable!()
}

fn _format_tag() -> defmt::Str {
Expand Down

0 comments on commit ebcc6da

Please sign in to comment.