xous-rs: Simplify return expressions.

This commit is contained in:
Jean-Pierre De Jesus DIAZ 2023-12-01 11:35:59 +01:00
parent 0141378192
commit 94737e9be2
No known key found for this signature in database
GPG key ID: 6279AEC20A9524EC

View file

@ -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(_) => {