Skip to content

Commit

Permalink
Combine char's ToTokens impl with numeric primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 22, 2024
1 parent cc7528b commit 0260e5f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/to_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,8 @@ primitive! {

f32 => f32_suffixed
f64 => f64_suffixed
}

impl ToTokens for char {
fn to_tokens(&self, tokens: &mut TokenStream) {
tokens.append(Literal::character(*self));
}
char => character
}

impl ToTokens for bool {
Expand Down

0 comments on commit 0260e5f

Please sign in to comment.