mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Merge pull request #398 from betrusted-io/rust-1.71.0-libstd-warning
Suggested method to preserve intent of `drop` to fix clippy warning
This commit is contained in:
commit
7da82f8753
2 changed files with 1 additions and 1 deletions
|
|
@ -517,7 +517,6 @@ pub(crate) fn close_key(
|
|||
return Err(crate::PddbRetcode::UnexpectedEof);
|
||||
}
|
||||
};
|
||||
core::mem::drop(file);
|
||||
|
||||
// If this SID is unused, close the connection.
|
||||
if let Some(cid) = conn {
|
||||
|
|
|
|||
|
|
@ -1096,6 +1096,7 @@ fn wrapped_main() -> ! {
|
|||
if let Err(e) = result {
|
||||
xous::return_scalar(msg.sender, e as usize)
|
||||
} else {
|
||||
fd_mapping.remove(&msg.sender.pid());
|
||||
xous::return_scalar2(msg.sender, 0, 0)
|
||||
}.ok();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue