mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
fix invalid unwrap()
unwrap on a routine always returns None, so the unwrap() has no meaning (probably originally introduced just as a way to get match arms to have the same return result without thinking too much about it).
This commit is contained in:
parent
d457f8b555
commit
6b98322754
1 changed files with 1 additions and 1 deletions
|
|
@ -926,7 +926,7 @@ fn main() -> ! {
|
||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
None => respond_with_error(msg, NetError::Invalid).unwrap(),
|
None => respond_with_error(msg, NetError::Invalid).unwrap_or(()), // this always returns None, can't do anything other than this.
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
respond_with_error(msg, NetError::Invalid);
|
respond_with_error(msg, NetError::Invalid);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue