diff --git a/src/coroutine.rs b/src/coroutine.rs index a02b270..284deda 100644 --- a/src/coroutine.rs +++ b/src/coroutine.rs @@ -43,17 +43,13 @@ impl Spawn for (String, i32) { impl Spawn for String { fn spawn(self, f: F) -> JoinHandle where F: FnOnce() -> T + Send + 'static, T: Send + 'static { - unsafe { - Builder::new().name(self).spawn(f) - } + Builder::new().name(self).spawn(f) } } impl Spawn for &String { fn spawn(self, f: F) -> JoinHandle where F: FnOnce() -> T + Send + 'static, T: Send + 'static { - unsafe { - Builder::new().name(self.to_owned()).spawn(f) - } + Builder::new().name(self.to_owned()).spawn(f) } }