Skip to content

Commit 05c552d

Browse files
committed
Add default type param for Globals
1 parent 4af89b1 commit 05c552d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mesh_view/globals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ impl WasmPadding for () {}
77
impl WasmPadding for f32 {}
88

99
#[repr(C)]
10-
pub struct Globals<P: WasmPadding> {
10+
pub struct Globals<P: WasmPadding = ()> {
1111
// The time since startup in seconds
1212
// Wraps to 0 after 1 hour.
1313
pub time: f32,

0 commit comments

Comments
 (0)