Skip to content

Commit

Permalink
Allow deprecated trim methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 1, 2019
1 parent 6a9d0f6 commit 2949f15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,7 @@ where
}
}

#[allow(deprecated)] // `trim_left_matches` and `trim_right_matches` since 1.33
fn from_str_generic<T, E, F>(s: &str, from: F) -> Result<Complex<T>, ParseComplexError<E>>
where
F: Fn(&str) -> Result<T, E>,
Expand Down

0 comments on commit 2949f15

Please sign in to comment.