diff --git a/all-is-cubes/src/universe/uref.rs b/all-is-cubes/src/universe/uref.rs index 5137492c1..8717f7920 100644 --- a/all-is-cubes/src/universe/uref.rs +++ b/all-is-cubes/src/universe/uref.rs @@ -154,6 +154,7 @@ impl URef { /// [`std::sync::RwLock::try_read()`]. /// /// TODO: There is not currently any way to block on / wait for read access. + #[inline(never)] pub fn read(&self) -> Result, RefError> { let inner = owning_guard::UBorrowImpl::new(self.upgrade()?) .map_err(|_| RefError::InUse(self.name()))?; @@ -172,6 +173,7 @@ impl URef { /// only use the mutation operations provided by `T`. /// /// TODO: If possible, completely replace this operation with transactions. + #[inline(never)] pub fn try_modify(&self, function: F) -> Result where F: FnOnce(&mut T) -> Out, @@ -217,6 +219,7 @@ impl URef { /// Returns an error if the transaction's preconditions were not met, if the /// referent was already borrowed (which is denoted as an [`ExecuteError::Check`]), /// or if the transaction encountered an unexpected error. + #[inline(never)] pub fn execute( &self, transaction: &::Transaction,