fix: set correct default value for max search
This commit is contained in:
@@ -4,7 +4,7 @@ fn max_of(values: Vec<u16>) -> Result<Outcome, FailedTo> {
|
|||||||
if values.is_empty() {
|
if values.is_empty() {
|
||||||
return Err(FailedTo::ProcessInput);
|
return Err(FailedTo::ProcessInput);
|
||||||
}
|
}
|
||||||
let ret = Ok(Outcome::Scalar(u16::MAX));
|
let ret = Ok(Outcome::Scalar(u16::MIN));
|
||||||
ret.and_then(|_| {
|
ret.and_then(|_| {
|
||||||
values
|
values
|
||||||
.iter()
|
.iter()
|
||||||
|
|||||||
Reference in New Issue
Block a user