Skip to content

Commit 8285735

Browse files
committed
as_slice is not available on array in 1.48
1 parent bb8ef79 commit 8285735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/issues.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,6 @@ fn issue_1231_bits_expect_fn_closure() {
211211
fn issue_1282_findtoken_char() {
212212
use nom::character::complete::one_of;
213213
use nom::error::Error;
214-
let parser = one_of::<_, _, Error<_>>(['a', 'b', 'c'].as_slice());
214+
let parser = one_of::<_, _, Error<_>>(&['a', 'b', 'c'][..]);
215215
assert_eq!(parser("aaa"), Ok(("aa", 'a')));
216216
}

0 commit comments

Comments
 (0)