💄 Format rust code

This commit is contained in:
Belén Albeza 2024-11-21 17:23:49 +01:00
parent f7ff3129ed
commit 6fd6074934
8 changed files with 85 additions and 91 deletions

View file

@ -1,11 +1,11 @@
pub mod debug;
pub mod images;
pub mod math;
pub mod render;
pub mod shapes;
pub mod state;
pub mod utils;
pub mod view;
pub mod math;
pub mod images;
pub mod debug;
use skia_safe as skia;
@ -57,7 +57,7 @@ pub extern "C" fn reset_canvas() {
}
#[no_mangle]
pub extern "C" fn resize_canvas(width: i32, height: i32) {
pub extern "C" fn resize_canvas(width: i32, height: i32) {
let state = unsafe { STATE.as_mut() }.expect("got an invalid state pointer");
state.resize(width, height);
}