From 6ed5df644ee00b0dfb74e5b30ebbc6f409016c94 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Tue, 23 Jan 2024 07:38:29 -0600 Subject: [PATCH] fix generational box release builds --- packages/generational-box/src/sync.rs | 7 +++---- packages/generational-box/src/unsync.rs | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/generational-box/src/sync.rs b/packages/generational-box/src/sync.rs index 7a611208b..007a820a3 100644 --- a/packages/generational-box/src/sync.rs +++ b/packages/generational-box/src/sync.rs @@ -6,8 +6,7 @@ use std::sync::{Arc, OnceLock}; use crate::{ error::{self, ValueDroppedError}, references::{GenerationalRef, GenerationalRefMut}, - AnyStorage, GenerationalRefBorrowInfo, GenerationalRefMutBorrowInfo, MemoryLocation, - MemoryLocationInner, Storage, + AnyStorage, MemoryLocation, MemoryLocationInner, Storage, }; /// 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 Storage for SyncStorage { .map(|inner| GenerationalRef { inner, #[cfg(any(debug_assertions, feature = "debug_borrows"))] - borrow: GenerationalRefBorrowInfo { + borrow: crate::GenerationalRefBorrowInfo { borrowed_at: borrow.borrowed_at, borrowed_from: borrow.borrowed_from, created_at: borrow.created_at, @@ -157,7 +156,7 @@ impl Storage for SyncStorage { .map(|inner| GenerationalRefMut { inner, #[cfg(any(debug_assertions, feature = "debug_borrows"))] - borrow: GenerationalRefMutBorrowInfo { + borrow: crate::GenerationalRefMutBorrowInfo { borrowed_from: borrow.borrowed_from, created_at: borrow.created_at, }, diff --git a/packages/generational-box/src/unsync.rs b/packages/generational-box/src/unsync.rs index e4434bbf9..8c13d357c 100644 --- a/packages/generational-box/src/unsync.rs +++ b/packages/generational-box/src/unsync.rs @@ -1,7 +1,7 @@ use crate::{ error, references::{GenerationalRef, GenerationalRefMut}, - AnyStorage, GenerationalRefMutBorrowInfo, MemoryLocation, MemoryLocationInner, Storage, + AnyStorage, MemoryLocation, MemoryLocationInner, Storage, }; use std::cell::{Ref, RefCell, RefMut}; @@ -111,7 +111,7 @@ impl Storage for UnsyncStorage { .map(|inner| GenerationalRefMut { inner, #[cfg(any(debug_assertions, feature = "debug_borrows"))] - borrow: GenerationalRefMutBorrowInfo { + borrow: crate::GenerationalRefMutBorrowInfo { borrowed_from: borrow.borrowed_from, created_at: borrow.created_at, },