File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,19 @@ fn get_thread_id() -> isize {
25
25
}
26
26
27
27
macro_rules! impl_control_traits {
28
- ( $control: ident ) => {
29
- unsafe impl Control for :: $control {
28
+ ( $control: path ) => {
29
+ unsafe impl Control for $control {
30
30
fn handle( & self ) -> * mut Ihandle {
31
31
assert!( !self . 0 . get( ) . is_null( ) , "attempted to use destroyed control" ) ;
32
32
:: check_thread( ) ;
33
33
self . 0 . get( )
34
34
}
35
35
}
36
36
37
- unsafe impl UnwrapHandle for :: $control {
37
+ unsafe impl UnwrapHandle for $control {
38
38
fn try_unwrap_handle( self ) -> Result <* mut Ihandle , Self > {
39
39
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) )
41
41
}
42
42
}
43
43
} ;
You can’t perform that action at this time.
0 commit comments