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:
bunnie 2023-08-08 00:05:51 +08:00 committed by GitHub
commit 7da82f8753
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View file

@ -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 {

View file

@ -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();
}