mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 04:46:11 +02:00
💄 Format rust code
This commit is contained in:
parent
f7ff3129ed
commit
6fd6074934
8 changed files with 85 additions and 91 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue