Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Sep 1, 2024
1 parent 8dd3203 commit 097bdc2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 1 addition & 2 deletions kubi/src/events.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use glam::UVec2;
use shipyard::{World, Component, AllStoragesViewMut, SparseSet, NonSendSync, UniqueView};
use shipyard::{World, Component, AllStoragesViewMut, SparseSet};
use winit::event::{Event, DeviceEvent, DeviceId, WindowEvent, Touch};
use crate::rendering::Renderer;

pub mod player_actions;

Expand Down
2 changes: 1 addition & 1 deletion kubi/src/networking/player.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use glam::{Vec3, Mat4};
use glam::Mat4;
use shipyard::{UniqueViewMut, View, IntoIter, AllStoragesView, AllStoragesViewMut, UniqueView, ViewMut, Get};
use uflow::{SendMode, client::Event as ClientEvent};
use kubi_shared::{
Expand Down
13 changes: 10 additions & 3 deletions kubi/src/player_controller.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
use glam::{vec3, EulerRot, Mat4, Quat, Vec2, Vec2Swizzles, Vec3, Vec3Swizzles};
use shipyard::{track, Component, Get, IntoIter, IntoWithId, IntoWorkload, Unique, UniqueView, View, ViewMut, Workload};
use glam::{EulerRot, Mat4, Quat, Vec2, Vec3, Vec3Swizzles};
use shipyard::{track, Component, Get, IntoIter, IntoWithId, IntoWorkload, UniqueView, View, ViewMut, Workload};
use winit::keyboard::KeyCode;
use std::f32::consts::PI;
use crate::{client_physics::ClPhysicsActor, cursor_lock::CursorLock, delta_time::DeltaTime, input::{Inputs, PrevInputs, RawKbmInputState}, settings::GameSettings, transform::Transform};
use crate::{
client_physics::ClPhysicsActor,
cursor_lock::CursorLock,
delta_time::DeltaTime,
input::{Inputs, PrevInputs, RawKbmInputState},
settings::GameSettings,
transform::Transform
};

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PlayerControllerType {
Expand Down

0 comments on commit 097bdc2

Please sign in to comment.