Skip to content

Commit 854ce70

Browse files
author
Stjepan Glavina
committed
Fix a warning
1 parent e3b7d54 commit 854ce70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl<T: Send + 'static> LocalKey<T> {
342342
unsafe {
343343
let mut data = (&*raw).0.locals.borrow_mut();
344344
let entry = data.entry(key).or_insert_with(|| Box::new((self.__init)()));
345-
let raw_pointer = &**entry as *const Opaque as *const T;
345+
let raw_pointer = &**entry as *const dyn Opaque as *const T;
346346
f(&*raw_pointer)
347347
}
348348
})

0 commit comments

Comments
 (0)