Skip to content

Commit

Permalink
Merge pull request #200 from dtolnay/isboolean
Browse files Browse the repository at this point in the history
Fix Pattern trait unimplemented for [char; 2]
  • Loading branch information
dtolnay committed Dec 27, 2021
2 parents d74545e + 96085ca commit 72ca26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime.rs
Expand Up @@ -317,7 +317,7 @@ fn is_boolean_literal(mut repr: &str) -> bool {
if repr.starts_with('-') {
repr = &repr[1..];
}
repr.starts_with(&['t', 'f'])
repr.starts_with(['t', 'f'].as_slice())
}

macro_rules! push_punct {
Expand Down

0 comments on commit 72ca26e

Please sign in to comment.