Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plan/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ impl<VM: VMBinding> CreateSpecificPlanArgs<'_, VM> {
zeroed: bool,
permission_exec: bool,
vmrequest: VMRequest,
) -> PlanCreateSpaceArgs<VM> {
) -> PlanCreateSpaceArgs<'_, VM> {
PlanCreateSpaceArgs {
name,
zeroed,
Expand Down
4 changes: 2 additions & 2 deletions src/scheduler/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ const STAT_BORROWED_MSG: &str = "GCWorkerShared.stat is already borrowed. This
the mutator calls harness_begin or harness_end while the GC is running.";

impl<VM: VMBinding> GCWorkerShared<VM> {
pub fn borrow_stat(&self) -> AtomicRef<WorkerLocalStat<VM>> {
pub fn borrow_stat(&self) -> AtomicRef<'_, WorkerLocalStat<VM>> {
self.stat.try_borrow().expect(STAT_BORROWED_MSG)
}

pub fn borrow_stat_mut(&self) -> AtomicRefMut<WorkerLocalStat<VM>> {
pub fn borrow_stat_mut(&self) -> AtomicRefMut<'_, WorkerLocalStat<VM>> {
self.stat.try_borrow_mut().expect(STAT_BORROWED_MSG)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/heap/externalpageresource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl<VM: VMBinding> ExternalPageResource<VM> {
lock.push(pages);
}

pub fn get_external_pages(&self) -> MutexGuard<Vec<ExternalPages>> {
pub fn get_external_pages(&self) -> MutexGuard<'_, Vec<ExternalPages>> {
self.ranges.lock().unwrap()
}
}
2 changes: 1 addition & 1 deletion src/util/heap/layout/map32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl Map32 {
/// Get a mutable reference to the inner Map32Inner with a lock.
/// The caller should only use the mutable reference while holding the lock.
#[allow(clippy::mut_from_ref)]
fn mut_self_with_sync(&self) -> (MutexGuard<()>, &mut Map32Inner) {
fn mut_self_with_sync(&self) -> (MutexGuard<'_, ()>, &mut Map32Inner) {
let guard = self.sync.lock().unwrap();
(guard, unsafe { self.mut_self() })
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ struct VMScanning;
// Just to make the code example look better.
use MockVM as MyVM;

// Placeholders for functions supposed to be implemented byu the VM.
// Placeholders for functions supposed to be implemented by the VM.
#[allow(dead_code)]
mod my_vm {
use crate::util::ObjectReference;

Expand Down