runtime-rs: remove all remaining unsafe impl

Fixes: #6307

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang
2023-02-20 14:08:14 +08:00
parent 0301194851
commit da8a6417aa
10 changed files with 10 additions and 28 deletions

View File

@@ -17,12 +17,9 @@ pub enum Action {
Start,
Stop,
Shutdown,
Event(Arc<dyn Event>),
Event(Arc<dyn Event + Send + Sync>),
}
unsafe impl Send for Message {}
unsafe impl Sync for Message {}
#[derive(Debug)]
pub struct Message {
pub action: Action,