Skip to content

Commit

Permalink
Fix Rust 1.56 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
koiuo committed Jun 20, 2022
1 parent 834c077 commit bc5bb75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,8 @@ where
/// assert_eq!(options.subsequent_indent, " ");
/// ```
pub fn unfill(text: &str) -> (String, Options<'_>) {
let trimmed = text.trim_end_matches(&['\r', '\n']);
let line_ending_pat: &[_] = &['\r', '\n'];
let trimmed = text.trim_end_matches(line_ending_pat);
let prefix_chars: &[_] = &[' ', '-', '+', '*', '>', '#', '/'];

let mut options = Options::new(0);
Expand Down

0 comments on commit bc5bb75

Please sign in to comment.