From 96085ca54d64b741e9d0424fff8040bad5604b77 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 27 Dec 2021 12:07:12 -0800 Subject: [PATCH] Fix Pattern trait unimplemented for [char; 2] --- src/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime.rs b/src/runtime.rs index c444fa7..242c289 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']) + repr.starts_with(['t', 'f'].as_slice()) } macro_rules! push_punct {