Skip to content

Commit

Permalink
chore: ensure macro is prepared for potential pretty printing improve…
Browse files Browse the repository at this point in the history
  • Loading branch information
tjallingt authored Nov 8, 2023
1 parent 012fac2 commit 91d6b12
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pagetop-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ pub fn fn_builder(_attr: TokenStream, item: TokenStream) -> TokenStream {

let param: Vec<String> = args
.iter()
.map(|arg| arg.split_whitespace().next().unwrap().to_string())
.map(|arg| {
arg.split_whitespace()
.next()
.unwrap()
.trim_end_matches(":")
.to_string()
})
.collect();

#[rustfmt::skip]
Expand Down

0 comments on commit 91d6b12

Please sign in to comment.