mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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((ManuallyDrop::into_inner(manual_self), e));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Err((
|
Err((
|
||||||
ManuallyDrop::into_inner(manual_self),
|
ManuallyDrop::into_inner(manual_self),
|
||||||
crate::Error::MemoryInUse,
|
crate::Error::MemoryInUse,
|
||||||
));
|
))
|
||||||
}
|
}
|
||||||
Message::BlockingScalar(_) => {
|
Message::BlockingScalar(_) => {
|
||||||
let result = crate::send_message(connection, body);
|
let result = crate::send_message(connection, body);
|
||||||
|
|
@ -113,10 +113,10 @@ impl Envelope {
|
||||||
}
|
}
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
return Err((
|
Err((
|
||||||
ManuallyDrop::into_inner(manual_self),
|
ManuallyDrop::into_inner(manual_self),
|
||||||
crate::Error::MemoryInUse,
|
crate::Error::MemoryInUse,
|
||||||
));
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
Message::Borrow(_) | Message::MutableBorrow(_) | Message::Scalar(_) => {
|
Message::Borrow(_) | Message::MutableBorrow(_) | Message::Scalar(_) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue