@@ -184,10 +184,7 @@ impl<T, A: AllocRef> Box<T, A> {
184
184
/// ```
185
185
#[ allow( clippy:: inline_always) ]
186
186
#[ inline( always) ]
187
- pub fn new_in ( x : T , a : A ) -> Self
188
- where
189
- A : AllocRef ,
190
- {
187
+ pub fn new_in ( x : T , a : A ) -> Self {
191
188
unsafe { Self :: try_new_in ( x, a) . unwrap_unchecked ( ) }
192
189
}
193
190
@@ -237,10 +234,7 @@ impl<T, A: AllocRef> Box<T, A> {
237
234
/// ```
238
235
#[ allow( clippy:: inline_always) ]
239
236
#[ inline( always) ]
240
- pub fn new_uninit_in ( a : A ) -> Box < mem:: MaybeUninit < T > , A >
241
- where
242
- A : AllocRef ,
243
- {
237
+ pub fn new_uninit_in ( a : A ) -> Box < mem:: MaybeUninit < T > , A > {
244
238
unsafe { Self :: try_new_uninit_in ( a) . unwrap_unchecked ( ) }
245
239
}
246
240
@@ -277,10 +271,7 @@ impl<T, A: AllocRef> Box<T, A> {
277
271
/// `Unpin`, then `x` will be pinned in memory and unable to be moved.
278
272
#[ allow( clippy:: inline_always) ]
279
273
#[ inline( always) ]
280
- pub fn pin_in ( x : T , a : A ) -> Pin < Self >
281
- where
282
- A : AllocRef ,
283
- {
274
+ pub fn pin_in ( x : T , a : A ) -> Pin < Self > {
284
275
unsafe { Self :: try_pin_in ( x, a) . unwrap_unchecked ( ) }
285
276
}
286
277
@@ -346,10 +337,7 @@ impl<T, A: AllocRef> Box<[T], A> {
346
337
/// ```
347
338
#[ allow( clippy:: inline_always) ]
348
339
#[ inline( always) ]
349
- pub fn new_uninit_slice_in ( len : usize , a : A ) -> Box < [ mem:: MaybeUninit < T > ] , A >
350
- where
351
- A : AllocRef ,
352
- {
340
+ pub fn new_uninit_slice_in ( len : usize , a : A ) -> Box < [ mem:: MaybeUninit < T > ] , A > {
353
341
unsafe { Self :: try_new_uninit_slice_in ( len, a) . unwrap_unchecked ( ) }
354
342
}
355
343
@@ -858,10 +846,7 @@ where
858
846
impl < T : Clone , A : AllocRef , B : AllocRef > CloneIn < B > for Box < T , A > {
859
847
type Cloned = Box < T , B > ;
860
848
861
- fn clone_in ( & self , a : B ) -> Self :: Cloned
862
- where
863
- B : AllocRef ,
864
- {
849
+ fn clone_in ( & self , a : B ) -> Self :: Cloned {
865
850
Box :: new_in ( self . as_ref ( ) . clone ( ) , a)
866
851
}
867
852
0 commit comments