mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
xous-rs: Simplify return expressions.
This commit is contained in:
parent
0141378192
commit
94737e9be2
1 changed files with 4 additions and 4 deletions
|
|
@ -91,10 +91,10 @@ impl Envelope {
|
|||
return Err((ManuallyDrop::into_inner(manual_self), e));
|
||||
}
|
||||
|
||||
return Err((
|
||||
Err((
|
||||
ManuallyDrop::into_inner(manual_self),
|
||||
crate::Error::MemoryInUse,
|
||||
));
|
||||
))
|
||||
}
|
||||
Message::BlockingScalar(_) => {
|
||||
let result = crate::send_message(connection, body);
|
||||
|
|
@ -113,10 +113,10 @@ impl Envelope {
|
|||
}
|
||||
return Ok(());
|
||||
}
|
||||
return Err((
|
||||
Err((
|
||||
ManuallyDrop::into_inner(manual_self),
|
||||
crate::Error::MemoryInUse,
|
||||
));
|
||||
))
|
||||
}
|
||||
|
||||
Message::Borrow(_) | Message::MutableBorrow(_) | Message::Scalar(_) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue