Skip to content

Commit

Permalink
Merge pull request #281 from dtolnay/char
Browse files Browse the repository at this point in the history
Combine char's ToTokens impl with numeric primitives
  • Loading branch information
dtolnay authored Aug 22, 2024
2 parents cc7528b + 0260e5f commit a4a0abf
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 a4a0abf

Please sign in to comment.