Skip to content

Commit 39cdafa

Browse files
committed
Fix compile error caused by a breaking change to the compiler
rust-lang/rust#39207
1 parent 23c3489 commit 39cdafa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ fn get_thread_id() -> isize {
2525
}
2626

2727
macro_rules! impl_control_traits {
28-
($control:ident) => {
29-
unsafe impl Control for ::$control {
28+
($control:path) => {
29+
unsafe impl Control for $control {
3030
fn handle(&self) -> *mut Ihandle {
3131
assert!(!self.0.get().is_null(), "attempted to use destroyed control");
3232
::check_thread();
3333
self.0.get()
3434
}
3535
}
3636

37-
unsafe impl UnwrapHandle for ::$control {
37+
unsafe impl UnwrapHandle for $control {
3838
fn try_unwrap_handle(self) -> Result<*mut Ihandle, Self> {
3939
assert!(!self.0.get().is_null(), "attempted to use destroyed control");
40-
self.0.try_unwrap().map_err(|handle_rc| ::$control(handle_rc))
40+
self.0.try_unwrap().map_err(|handle_rc| $control(handle_rc))
4141
}
4242
}
4343
};

0 commit comments

Comments
 (0)