Skip to content

Commit aa1abc2

Browse files
committed
glib: Fix glib::wrapper! for BoxedInline with generic parameters
1 parent 94a9159 commit aa1abc2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

glib/src/boxed_inline.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ macro_rules! glib_boxed_inline_wrapper {
207207
}
208208

209209
#[doc(hidden)]
210-
impl<'a $(, $($generic: 'a + $($bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibPtr<'a, *const $ffi_name> for $name $(<$($generic),+>)? {
210+
impl<'a $(, $($generic $(: $bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibPtr<'a, *const $ffi_name> for $name $(<$($generic),+>)? {
211211
type Storage = std::marker::PhantomData<&'a Self>;
212212

213213
#[inline]
@@ -225,7 +225,7 @@ macro_rules! glib_boxed_inline_wrapper {
225225
}
226226

227227
#[doc(hidden)]
228-
impl<'a $(, $($generic: 'a + $($bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibPtrMut<'a, *mut $ffi_name> for $name $(<$($generic),+>)? {
228+
impl<'a $(, $($generic $(: $bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibPtrMut<'a, *mut $ffi_name> for $name $(<$($generic),+>)? {
229229
type Storage = std::marker::PhantomData<&'a mut Self>;
230230

231231
#[inline]
@@ -236,7 +236,7 @@ macro_rules! glib_boxed_inline_wrapper {
236236
}
237237

238238
#[doc(hidden)]
239-
impl<'a $(, $($generic: 'a + $($bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibContainerFromSlice<'a, *mut *const $ffi_name> for $name $(<$($generic),+>)? {
239+
impl<'a $(, $($generic $(: $bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibContainerFromSlice<'a, *mut *const $ffi_name> for $name $(<$($generic),+>)? {
240240
type Storage = (std::marker::PhantomData<&'a [Self]>, Option<Vec<*const $ffi_name>>);
241241

242242
fn to_glib_none_from_slice(t: &'a [Self]) -> (*mut *const $ffi_name, Self::Storage) {
@@ -276,7 +276,7 @@ macro_rules! glib_boxed_inline_wrapper {
276276
}
277277

278278
#[doc(hidden)]
279-
impl<'a $(, $($generic: 'a + $($bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibContainerFromSlice<'a, *const *const $ffi_name> for $name $(<$($generic),+>)? {
279+
impl<'a $(, $($generic $(: $bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibContainerFromSlice<'a, *const *const $ffi_name> for $name $(<$($generic),+>)? {
280280
type Storage = (std::marker::PhantomData<&'a [Self]>, Option<Vec<*const $ffi_name>>);
281281

282282
#[inline]
@@ -297,7 +297,7 @@ macro_rules! glib_boxed_inline_wrapper {
297297
}
298298

299299
#[doc(hidden)]
300-
impl<'a $(, $($generic: 'a + $($bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibContainerFromSlice<'a, *mut $ffi_name> for $name $(<$($generic),+>)? {
300+
impl<'a $(, $($generic $(: $bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibContainerFromSlice<'a, *mut $ffi_name> for $name $(<$($generic),+>)? {
301301
type Storage = std::marker::PhantomData<&'a [Self]>;
302302

303303
#[inline]
@@ -329,7 +329,7 @@ macro_rules! glib_boxed_inline_wrapper {
329329
}
330330

331331
#[doc(hidden)]
332-
impl<'a $(, $($generic: 'a $($bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibContainerFromSlice<'a, *const $ffi_name> for $name $(<$($generic),+>)? {
332+
impl<'a $(, $($generic $(: $bound $(+ $bound2)*)?),+)?> $crate::translate::ToGlibContainerFromSlice<'a, *const $ffi_name> for $name $(<$($generic),+>)? {
333333
type Storage = std::marker::PhantomData<&'a [Self]>;
334334

335335
#[inline]

0 commit comments

Comments
 (0)