From 16aa9ef40af56d69289d00aafb3deadfb8bd4f35 Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Sat, 8 Aug 2020 00:53:02 +0200 Subject: [PATCH] Fix hotloading and Clippy. --- voxygen/src/anim/src/lib.rs | 2 +- voxygen/src/scene/figure/mod.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/voxygen/src/anim/src/lib.rs b/voxygen/src/anim/src/lib.rs index 506abfe2de..6376510f1f 100644 --- a/voxygen/src/anim/src/lib.rs +++ b/voxygen/src/anim/src/lib.rs @@ -107,7 +107,7 @@ pub fn compute_matrices( let compute_fn: libloading::Symbol< fn(&S, Mat4, &mut [FigureBoneData; MAX_BONE_COUNT]) -> Vec3, - > = unsafe { lib.get(Self::COMPUTE_FN) }.unwrap_or_else(|e| { + > = unsafe { lib.get(S::COMPUTE_FN) }.unwrap_or_else(|e| { panic!( "Trying to use: {} but had error: {:?}", CStr::from_bytes_with_nul(S::COMPUTE_FN) diff --git a/voxygen/src/scene/figure/mod.rs b/voxygen/src/scene/figure/mod.rs index b4c9e2137e..4b0e1b703d 100644 --- a/voxygen/src/scene/figure/mod.rs +++ b/voxygen/src/scene/figure/mod.rs @@ -416,7 +416,6 @@ impl FigureMgr { visible_psr_bounds: math::Aabr, camera: &Camera, ) -> anim::vek::Aabb { - let visible_psr_bounds = math::Aabr::from(visible_psr_bounds); let state = scene_data.state; let time = state.get_time(); let tick = scene_data.tick;