Skip to content

Commit

Permalink
Fix Pattern trait unimplemented for [char; 2]
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 27, 2021
1 parent d74545e commit 96085ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime.rs
Original file line number Diff line number Diff line change
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 96085ca

Please sign in to comment.