Skip to content
Snippets Groups Projects
Unverified Commit 13ff6916 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Fix Cargo warnings using latest Rust

This fixes a few warnings that will be produced when using the latest
versions of Rust and Cargo.
parent c5d3b303
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -72,7 +72,7 @@ impl Mailbox {
if let Some(pointer) = self.internal.pop_front() {
self.amount.fetch_sub(1, Ordering::AcqRel);
 
return (pointer.is_mailbox(), Some(pointer));
(pointer.is_mailbox(), Some(pointer))
} else {
(false, None)
}
Loading
Loading
Loading
Loading
@@ -35,8 +35,6 @@ pub fn prefetch_read<T>(pointer: *const T) {
arch_impl::_MM_HINT_NTA,
);
}
return;
}
}
 
Loading
Loading
Loading
Loading
@@ -35,7 +35,7 @@ macro_rules! file_mode_error {
pub fn io_read(
state: &RcState,
process: &RcProcess,
stream: &mut Read,
stream: &mut dyn Read,
buffer: &mut Vec<u8>,
amount: ObjectPointer,
) -> Result<ObjectPointer, RuntimeError> {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment