We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unsafe_op_in_unsafe_fn
1 parent c606d85 commit f81ade8Copy full SHA for f81ade8
1 file changed
drivers/android/node.rs
@@ -83,12 +83,14 @@ impl NodeDeath {
83
cookie,
84
work_links: Links::new(),
85
death_links: Links::new(),
86
- inner: SpinLock::new(NodeDeathInner {
87
- dead: false,
88
- cleared: false,
89
- notification_done: false,
90
- aborted: false,
91
- }),
+ inner: unsafe {
+ SpinLock::new(NodeDeathInner {
+ dead: false,
+ cleared: false,
+ notification_done: false,
+ aborted: false,
92
+ })
93
+ },
94
}
95
96
0 commit comments