Removed unused imports
This commit is contained in:
parent
9b53827622
commit
9a81d6d474
@ -76,7 +76,7 @@ pub async fn run() {
|
||||
.collect();
|
||||
|
||||
state.set_instances(instances);
|
||||
}).on_input(move |state, event| {
|
||||
}).on_input(move |_state, event| {
|
||||
if let KeyboardInput { event, .. } = event {
|
||||
if event.state == ElementState::Pressed {
|
||||
return match event.key_without_modifiers().as_ref() {
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::Mutex;
|
||||
use crate::body::Body;
|
||||
use rayon::prelude::*;
|
||||
|
||||
@ -1,22 +1,12 @@
|
||||
use std::cmp::max;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::{Arc, RwLock};
|
||||
use std::thread;
|
||||
use std::time::{Duration, Instant};
|
||||
use cgmath::num_traits::{pow, ToPrimitive};
|
||||
use cgmath::Rotation3;
|
||||
use std::sync::{Arc};
|
||||
use log::info;
|
||||
use pollster::FutureExt;
|
||||
use wgpu::util::DeviceExt;
|
||||
use wgpu::{Adapter, Device, Instance, PresentMode, Queue, Surface, SurfaceCapabilities, SurfaceConfiguration};
|
||||
use winit::application::ApplicationHandler;
|
||||
use winit::dpi::PhysicalSize;
|
||||
use winit::event::{ElementState, WindowEvent};
|
||||
use winit::event::WindowEvent::KeyboardInput;
|
||||
use winit::event_loop::{ActiveEventLoop, EventLoop};
|
||||
use winit::keyboard::Key;
|
||||
use winit::platform::modifier_supplement::KeyEventExtModifierSupplement;
|
||||
use winit::window::{Window, WindowId};
|
||||
use winit::window::{Window};
|
||||
use crate::render::{create_circle_vertices, Geometry, Globals, InstanceRaw, RenderInstance, SampleCount, Shape, Vertex};
|
||||
|
||||
pub struct State<'a> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user