@@ -13,15 +13,15 @@ macro_rules! glib_boxed_inline_wrapper {
13
13
#[ repr( transparent) ]
14
14
$visibility struct $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? {
15
15
pub ( crate ) inner: $ffi_name,
16
- pub ( crate ) phantom: std:: marker:: PhantomData <( $( $( $ generic) ,+) ? ) > ,
16
+ $ ( pub ( crate ) phantom: std:: marker:: PhantomData <$( $generic) ,+> , ) ?
17
17
}
18
18
19
19
impl $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? std:: clone:: Clone for $name $( <$( $generic) ,+>) ? {
20
20
#[ inline]
21
21
fn clone( & self ) -> Self {
22
22
Self {
23
23
inner: std:: clone:: Clone :: clone( & self . inner) ,
24
- phantom: std:: marker:: PhantomData ,
24
+ $ ( phantom: std:: marker:: PhantomData :: <$ ( $generic ) ,+> ) ?
25
25
}
26
26
}
27
27
}
@@ -45,15 +45,15 @@ macro_rules! glib_boxed_inline_wrapper {
45
45
#[ repr( transparent) ]
46
46
$visibility struct $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? {
47
47
pub ( crate ) inner: $ffi_name,
48
- pub ( crate ) phantom: std:: marker:: PhantomData <( $( $( $ generic) ,+) ? ) > ,
48
+ $ ( pub ( crate ) phantom: std:: marker:: PhantomData <$( $generic) ,+> , ) ?
49
49
}
50
50
51
51
impl $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? std:: clone:: Clone for $name $( <$( $generic) ,+>) ? {
52
52
#[ inline]
53
53
fn clone( & self ) -> Self {
54
54
Self {
55
55
inner: std:: clone:: Clone :: clone( & self . inner) ,
56
- phantom: std:: marker:: PhantomData ,
56
+ $ ( phantom: std:: marker:: PhantomData :: <$ ( $generic ) ,+> ) ?
57
57
}
58
58
}
59
59
}
@@ -76,7 +76,7 @@ macro_rules! glib_boxed_inline_wrapper {
76
76
#[ repr( transparent) ]
77
77
$visibility struct $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? {
78
78
pub ( crate ) inner: $ffi_name,
79
- pub ( crate ) phantom: std:: marker:: PhantomData <( $( $( $ generic) ,+) ? ) > ,
79
+ $ ( pub ( crate ) phantom: std:: marker:: PhantomData <$( $generic) ,+> , ) ?
80
80
}
81
81
82
82
impl $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? std:: clone:: Clone for $name $( <$( $generic) ,+>) ? {
@@ -116,7 +116,7 @@ macro_rules! glib_boxed_inline_wrapper {
116
116
#[ repr( transparent) ]
117
117
$visibility struct $name $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? {
118
118
pub ( crate ) inner: $ffi_name,
119
- pub ( crate ) phantom: std:: marker:: PhantomData <( $( $( $ generic) ,+) ? ) > ,
119
+ $ ( pub ( crate ) phantom: std:: marker:: PhantomData <$( $generic) ,+> , ) ?
120
120
}
121
121
122
122
impl $( <$( $generic $( : $bound $( + $bound2) * ) ?) ,+>) ? std:: clone:: Clone for $name $( <$( $generic) ,+>) ? {
@@ -164,7 +164,7 @@ macro_rules! glib_boxed_inline_wrapper {
164
164
init( v. as_mut_ptr( ) ) ;
165
165
Self {
166
166
inner: v. assume_init( ) ,
167
- phantom: std:: marker:: PhantomData ,
167
+ $ ( phantom: std:: marker:: PhantomData :: <$ ( $generic ) ,+> ) ?
168
168
}
169
169
}
170
170
}
@@ -174,7 +174,7 @@ macro_rules! glib_boxed_inline_wrapper {
174
174
unsafe fn unsafe_from( t: $ffi_name) -> Self {
175
175
Self {
176
176
inner: t,
177
- phantom: std:: marker:: PhantomData ,
177
+ $ ( phantom: std:: marker:: PhantomData :: <$ ( $generic ) ,+> ) ?
178
178
}
179
179
}
180
180
}
@@ -372,7 +372,7 @@ macro_rules! glib_boxed_inline_wrapper {
372
372
373
373
$crate:: translate:: Borrowed :: new( Self {
374
374
inner: std:: ptr:: read( ptr) ,
375
- phantom: std:: marker:: PhantomData ,
375
+ $ ( phantom: std:: marker:: PhantomData :: <$ ( $generic ) ,+> ) ?
376
376
} )
377
377
}
378
378
}
0 commit comments