From 926e18abf7d56d046abe61aa5efb927530329974 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 13 Feb 2024 22:12:43 -0800 Subject: [PATCH] rustified --- src/source.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/source.rs b/src/source.rs index f75b321..260d62b 100644 --- a/src/source.rs +++ b/src/source.rs @@ -34,11 +34,8 @@ impl Loader{ mesh_loader:MeshLoader{mesh_paths:HashMap::new()}, } } - pub fn texture_mut(&self)->&mut TextureLoader{ - &mut self.texture_loader - } - pub fn mesh_mut(&self)->&mut MeshLoader{ - &mut self.mesh_loader + pub fn get_inner_mut(&mut self)->(&mut TextureLoader,&mut MeshLoader){ + (&mut self.texture_loader,&mut self.mesh_loader) } }