Skip to content

Commit 638a093

Browse files
committed
annotate type
1 parent 2b5af78 commit 638a093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/res.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ macro_rules! def_resource {
147147
static RES: $crate::Resource = $crate::Resource {
148148
layout: core::alloc::Layout::new::<$ty>(),
149149
init: |ptr| {
150-
let val = $default;
150+
let val: $ty = $default;
151151
unsafe { ptr.cast().write(val) }
152152
},
153153
drop: |ptr| unsafe {

0 commit comments

Comments
 (0)