Cleanup code warnings

This commit is contained in:
SeanOMik 2024-11-07 18:03:36 -05:00
parent a45f642d4c
commit 8f926b3b58
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
1 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,4 @@
use std::alloc::Layout;
use std::any::TypeId;
use std::collections::HashMap;
use std::ptr::NonNull;
@ -8,8 +7,7 @@ use async_trait::async_trait;
use common_api::math::Vec3;
use component::witguest::math;
use ecs::query::dynamic::{DynamicViewState, DynamicViewStateIter, QueryDynamicType};
use lyra_ecs::{query::dynamic::DynamicViewOne, DynTypeId};
use lyra_ecs::{ArchetypeEntityId, World};
use lyra_ecs::{query::dynamic::DynamicViewOne, DynTypeId, World};
use lyra_ecs as ecs;
@ -34,7 +32,7 @@ wasmtime::component::bindgen!({
}
});
use lyra::api::ecs::{self as wasm_ecs, ComponentInfo};
use lyra::api::ecs as wasm_ecs;
impl Into<ecs::DynTypeId> for wasm_ecs::WasmTypeId {
fn into(self) -> ecs::DynTypeId {
@ -490,7 +488,7 @@ async fn main() -> wasmtime::Result<()> {
dv.push(QueryDynamicType::from_info(lyra_ecs::ComponentInfo::new::<Vec3>()));
let iter = dv.into_iter();
for (en, comps) in iter {
for (_, comps) in iter {
let first = comps.first().unwrap();
unsafe {
let v: Vec3 = std::ptr::read(first.ptr.as_ptr() as _);