Skip to content

Commit 9063975

Browse files
committed
Fmt for ci.
1 parent 479137c commit 9063975

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

crates/processing_ffi/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use bevy::prelude::Entity;
22
use processing::prelude::*;
3+
34
use crate::color::Color;
45

56
mod color;

crates/processing_render/src/lib.rs

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl CameraProjection for ProcessingProjection {
6464
0.0,
6565
self.width,
6666
self.height, // bottom = height
67-
0.0, // top = 0
67+
0.0, // top = 0
6868
self.near,
6969
self.far,
7070
)
@@ -94,15 +94,15 @@ impl CameraProjection for ProcessingProjection {
9494

9595
[
9696
// near plane
97-
near_center + Vec3A::new(half_width, half_height, 0.0), // bottom-right
98-
near_center + Vec3A::new(half_width, -half_height, 0.0), // top-right
97+
near_center + Vec3A::new(half_width, half_height, 0.0), // bottom-right
98+
near_center + Vec3A::new(half_width, -half_height, 0.0), // top-right
9999
near_center + Vec3A::new(-half_width, -half_height, 0.0), // top-left
100-
near_center + Vec3A::new(-half_width, half_height, 0.0), // bottom-left
100+
near_center + Vec3A::new(-half_width, half_height, 0.0), // bottom-left
101101
// far plane
102-
far_center + Vec3A::new(half_width, half_height, 0.0), // bottom-right
103-
far_center + Vec3A::new(half_width, -half_height, 0.0), // top-right
104-
far_center + Vec3A::new(-half_width, -half_height, 0.0), // top-left
105-
far_center + Vec3A::new(-half_width, half_height, 0.0), // bottom-left
102+
far_center + Vec3A::new(half_width, half_height, 0.0), // bottom-right
103+
far_center + Vec3A::new(half_width, -half_height, 0.0), // top-right
104+
far_center + Vec3A::new(-half_width, -half_height, 0.0), // top-left
105+
far_center + Vec3A::new(-half_width, half_height, 0.0), // bottom-left
106106
]
107107
}
108108
}
@@ -215,10 +215,10 @@ pub fn create_surface(
215215

216216
#[cfg(target_os = "windows")]
217217
let (raw_window_handle, raw_display_handle) = {
218-
use raw_window_handle::{Win32WindowHandle, WindowsDisplayHandle};
219218
use std::num::NonZeroIsize;
220-
use windows::Win32::Foundation::HINSTANCE;
221-
use windows::Win32::System::LibraryLoader::GetModuleHandleW;
219+
220+
use raw_window_handle::{Win32WindowHandle, WindowsDisplayHandle};
221+
use windows::Win32::{Foundation::HINSTANCE, System::LibraryLoader::GetModuleHandleW};
222222

223223
if window_handle == 0 {
224224
return Err(error::ProcessingError::InvalidWindowHandle);
@@ -478,7 +478,6 @@ pub fn exit(exit_code: u8) -> Result<()> {
478478
Ok(())
479479
})?;
480480

481-
482481
// we need to drop the app in a deterministic manner to ensure resourcse are cleaned up
483482
// otherwise we'll get wgpu graphics backend errors on exit
484483
APP.with(|app_cell| {

examples/glfw.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ impl GlfwContext {
2222
window.set_all_polling(true);
2323
window.show();
2424

25-
Ok(Self { glfw, window, events })
25+
Ok(Self {
26+
glfw,
27+
window,
28+
events,
29+
})
2630
}
2731

2832
#[cfg(target_os = "macos")]

examples/rectangle.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ fn sketch() -> error::Result<()> {
4040
)?;
4141

4242
end_draw(surface)?;
43-
4443
}
4544
Ok(())
4645
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pub mod prelude;
1+
pub mod prelude;

src/prelude.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
pub use processing_render::*;
2-
pub use processing_render::render::command::DrawCommand;
3-
pub use bevy::prelude::{
4-
default
5-
};
1+
pub use bevy::prelude::default;
2+
pub use processing_render::{render::command::DrawCommand, *};

0 commit comments

Comments
 (0)