This commit is contained in:
Luke Boswell 2024-04-03 20:03:02 +11:00
parent b010e8caba
commit e4c5ba064b
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0

View file

@ -374,7 +374,7 @@ pub fn is_loc_expr_suffixed(loc_expr: &Loc<Expr>) -> bool {
}
}
pub fn split_around<'a, T>(items: &'a [T], target: usize) -> (&'a [T], &'a [T]) {
pub fn split_around<T>(items: &[T], target: usize) -> (&[T], &[T]) {
let (before, rest) = items.split_at(target);
let after = &rest[1..];