Update dependencies and rust version
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@ use std::{
|
||||
collections::HashMap,
|
||||
fmt::Debug,
|
||||
iter::FusedIterator,
|
||||
sync::{atomic::AtomicU64, Arc, Mutex, RwLock, RwLockReadGuard, TryLockError, Weak},
|
||||
sync::{Arc, Mutex, RwLock, RwLockReadGuard, TryLockError, Weak, atomic::AtomicU64},
|
||||
};
|
||||
|
||||
use bytemuck::BoxBytes;
|
||||
@@ -223,7 +223,7 @@ impl MemoryRegion {
|
||||
.iter()
|
||||
.map(|i| i.load(std::sync::atomic::Ordering::Acquire))
|
||||
.enumerate()
|
||||
.max_by_key(|(_, gen)| *gen)
|
||||
.max_by_key(|(_, g)| *g)
|
||||
.map(|(i, _)| i)
|
||||
.unwrap();
|
||||
let inner = match self.bufs[newest_index].try_read() {
|
||||
|
||||
Reference in New Issue
Block a user