Skip to content

Commit

Permalink
Merge pull request #201 from dtolnay/isboolean
Browse files Browse the repository at this point in the history
Fix no as_slice() on arrays on old toolchains
  • Loading branch information
dtolnay authored Dec 27, 2021
2 parents 72ca26e + 50e8ac8 commit 7e3c9fc
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'].as_slice())
repr.starts_with(&['t', 'f'][..])
}

macro_rules! push_punct {
Expand Down

0 comments on commit 7e3c9fc

Please sign in to comment.