Fix hotloading and Clippy.

This commit is contained in:
Joshua Yanovski 2020-08-08 00:53:02 +02:00
parent 3dc973e0be
commit 16aa9ef40a
2 changed files with 1 additions and 2 deletions

View File

@ -107,7 +107,7 @@ pub fn compute_matrices<S: Skeleton>(
let compute_fn: libloading::Symbol<
fn(&S, Mat4<f32>, &mut [FigureBoneData; MAX_BONE_COUNT]) -> Vec3<f32>,
> = 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)

View File

@ -416,7 +416,6 @@ impl FigureMgr {
visible_psr_bounds: math::Aabr<f32>,
camera: &Camera,
) -> anim::vek::Aabb<f32> {
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;