Skip to content

Commit

Permalink
as_slice is not available on array in 1.48
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Mar 14, 2022
1 parent bb8ef79 commit 8285735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/issues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,6 @@ fn issue_1231_bits_expect_fn_closure() {
fn issue_1282_findtoken_char() {
use nom::character::complete::one_of;
use nom::error::Error;
let parser = one_of::<_, _, Error<_>>(['a', 'b', 'c'].as_slice());
let parser = one_of::<_, _, Error<_>>(&['a', 'b', 'c'][..]);
assert_eq!(parser("aaa"), Ok(("aa", 'a')));
}

0 comments on commit 8285735

Please sign in to comment.