From 5360fe6a337145b2640ec1e5727c97fd9bbeacd9 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:24 +0100 Subject: refactor(all): small fixes --- stockton-skeleton/src/context.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stockton-skeleton/src/context.rs') diff --git a/stockton-skeleton/src/context.rs b/stockton-skeleton/src/context.rs index bbd0164..d1997d3 100644 --- a/stockton-skeleton/src/context.rs +++ b/stockton-skeleton/src/context.rs @@ -285,12 +285,13 @@ impl RenderingContext { } /// Get the specified memory pool, lazily initialising it if it's not yet present - pub fn memory_pool<'a, P: MemoryPool>(&'a mut self) -> Result<&'a Arc>> { + pub fn memory_pool(&mut self) -> Result<&Arc>> { self.ensure_memory_pool::

()?; Ok(self.existing_memory_pool::

().unwrap()) } /// Ensure the specified memory pool is initialised. + #[allow(clippy::map_entry)] // We can't follow the suggestion because of a borrowing issue pub fn ensure_memory_pool(&mut self) -> Result<()> { let tid = TypeId::of::

(); if !self.memory_pools.contains_key(&tid) { -- cgit v1.2.3