Remove redundant constraint
This commit is contained in:
parent
2cf462ad9d
commit
3114920494
@ -64,7 +64,7 @@ fn max_batteries(n: usize, v: &[u8]) -> Option<Vec<u8>> {
|
||||
Some(result)
|
||||
}
|
||||
|
||||
fn find_max<A: Ord + Copy>(v: &[A]) -> Option<(usize, &A)> {
|
||||
fn find_max<A: Ord>(v: &[A]) -> Option<(usize, &A)> {
|
||||
v.iter().enumerate().rev().max_by_key(|x| x.1)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user