fix generational box release builds
This commit is contained in:
1 parent
a51744c439
commit
6ed5df644e
2 files changed
+5
-6
No files matched your search
@@ -6,8 +6,7 @@ use std::sync::{Arc, OnceLock};
|
|||||||
use crate::{
|
use crate::{
|
||||||
error::{self, ValueDroppedError},
|
error::{self, ValueDroppedError},
|
||||||
references::{GenerationalRef, GenerationalRefMut},
|
references::{GenerationalRef, GenerationalRefMut},
|
||||||
AnyStorage, GenerationalRefBorrowInfo, GenerationalRefMutBorrowInfo, MemoryLocation,
|
AnyStorage, MemoryLocation, MemoryLocationInner, Storage,
|
||||||
MemoryLocationInner, Storage,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A thread safe storage. This is slower than the unsync storage, but allows you to share the value between threads.
|
/// A thread safe storage. This is slower than the unsync storage, but allows you to share the value between threads.
|
||||||
@@ -134,7 +133,7 @@ impl<T: Sync + Send + 'static> Storage<T> for SyncStorage {
|
|||||||
.map(|inner| GenerationalRef {
|
.map(|inner| GenerationalRef {
|
||||||
inner,
|
inner,
|
||||||
#[cfg(any(debug_assertions, feature = "debug_borrows"))]
|
#[cfg(any(debug_assertions, feature = "debug_borrows"))]
|
||||||
borrow: GenerationalRefBorrowInfo {
|
borrow: crate::GenerationalRefBorrowInfo {
|
||||||
borrowed_at: borrow.borrowed_at,
|
borrowed_at: borrow.borrowed_at,
|
||||||
borrowed_from: borrow.borrowed_from,
|
borrowed_from: borrow.borrowed_from,
|
||||||
created_at: borrow.created_at,
|
created_at: borrow.created_at,
|
||||||
@@ -157,7 +156,7 @@ impl<T: Sync + Send + 'static> Storage<T> for SyncStorage {
|
|||||||
.map(|inner| GenerationalRefMut {
|
.map(|inner| GenerationalRefMut {
|
||||||
inner,
|
inner,
|
||||||
#[cfg(any(debug_assertions, feature = "debug_borrows"))]
|
#[cfg(any(debug_assertions, feature = "debug_borrows"))]
|
||||||
borrow: GenerationalRefMutBorrowInfo {
|
borrow: crate::GenerationalRefMutBorrowInfo {
|
||||||
borrowed_from: borrow.borrowed_from,
|
borrowed_from: borrow.borrowed_from,
|
||||||
created_at: borrow.created_at,
|
created_at: borrow.created_at,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
error,
|
error,
|
||||||
references::{GenerationalRef, GenerationalRefMut},
|
references::{GenerationalRef, GenerationalRefMut},
|
||||||
AnyStorage, GenerationalRefMutBorrowInfo, MemoryLocation, MemoryLocationInner, Storage,
|
AnyStorage, MemoryLocation, MemoryLocationInner, Storage,
|
||||||
};
|
};
|
||||||
use std::cell::{Ref, RefCell, RefMut};
|
use std::cell::{Ref, RefCell, RefMut};
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ impl<T: 'static> Storage<T> for UnsyncStorage {
|
|||||||
.map(|inner| GenerationalRefMut {
|
.map(|inner| GenerationalRefMut {
|
||||||
inner,
|
inner,
|
||||||
#[cfg(any(debug_assertions, feature = "debug_borrows"))]
|
#[cfg(any(debug_assertions, feature = "debug_borrows"))]
|
||||||
borrow: GenerationalRefMutBorrowInfo {
|
borrow: crate::GenerationalRefMutBorrowInfo {
|
||||||
borrowed_from: borrow.borrowed_from,
|
borrowed_from: borrow.borrowed_from,
|
||||||
created_at: borrow.created_at,
|
created_at: borrow.created_at,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user