Skip to content

Commit

Permalink
Update esp-hal-procmacros/src/lp_core.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Dominic Fischer <[email protected]>
  • Loading branch information
bugadani and Dominaezzz committed Aug 30, 2024
1 parent b6da9b7 commit 21a9bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-hal-procmacros/src/lp_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {

pub(crate) fn get_simplename(t: &Type) -> String {
match t {
Type::Path(p) => String::from(&p.path.segments.last().unwrap().ident.to_string()),
Type::Path(p) => p.path.segments.last().unwrap().ident.to_string(),
_ => String::new(),
}
}
Expand Down

0 comments on commit 21a9bed

Please sign in to comment.