diff --git a/src/runtime.rs b/src/runtime.rs index 242c289..fe5fd04 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -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 {