@@ -93,7 +93,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
93
93
. map ( |dict| dict. to_owned ( ) . unbind ( ) . into_bound ( py) )
94
94
}
95
95
96
- type Arguments < ' a > = PyArgs < ' py > where Self : ' a ;
96
+ type Arguments < ' a >
97
+ = PyArgs < ' py >
98
+ where
99
+ Self : ' a ;
97
100
98
101
fn validate_args ( & self ) -> ValResult < PyArgs < ' py > > {
99
102
if let Ok ( dict) = self . downcast :: < PyDict > ( ) {
@@ -350,7 +353,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
350
353
Err ( ValError :: new ( error_type, self ) )
351
354
}
352
355
353
- type Dict < ' a > = GenericPyMapping < ' a , ' py > where Self : ' a ;
356
+ type Dict < ' a >
357
+ = GenericPyMapping < ' a , ' py >
358
+ where
359
+ Self : ' a ;
354
360
355
361
fn strict_dict < ' a > ( & ' a self ) -> ValResult < GenericPyMapping < ' a , ' py > > {
356
362
if let Ok ( dict) = self . downcast :: < PyDict > ( ) {
@@ -404,7 +410,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
404
410
}
405
411
}
406
412
407
- type List < ' a > = PySequenceIterable < ' a , ' py > where Self : ' a ;
413
+ type List < ' a >
414
+ = PySequenceIterable < ' a , ' py >
415
+ where
416
+ Self : ' a ;
408
417
409
418
fn validate_list < ' a > ( & ' a self , strict : bool ) -> ValMatch < PySequenceIterable < ' a , ' py > > {
410
419
if let Ok ( list) = self . downcast :: < PyList > ( ) {
@@ -418,7 +427,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
418
427
Err ( ValError :: new ( ErrorTypeDefaults :: ListType , self ) )
419
428
}
420
429
421
- type Tuple < ' a > = PySequenceIterable < ' a , ' py > where Self : ' a ;
430
+ type Tuple < ' a >
431
+ = PySequenceIterable < ' a , ' py >
432
+ where
433
+ Self : ' a ;
422
434
423
435
fn validate_tuple < ' a > ( & ' a self , strict : bool ) -> ValMatch < PySequenceIterable < ' a , ' py > > {
424
436
if let Ok ( tup) = self . downcast :: < PyTuple > ( ) {
@@ -432,7 +444,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
432
444
Err ( ValError :: new ( ErrorTypeDefaults :: TupleType , self ) )
433
445
}
434
446
435
- type Set < ' a > = PySequenceIterable < ' a , ' py > where Self : ' a ;
447
+ type Set < ' a >
448
+ = PySequenceIterable < ' a , ' py >
449
+ where
450
+ Self : ' a ;
436
451
437
452
fn validate_set < ' a > ( & ' a self , strict : bool ) -> ValMatch < PySequenceIterable < ' a , ' py > > {
438
453
if let Ok ( set) = self . downcast :: < PySet > ( ) {
@@ -742,7 +757,10 @@ impl<'py> Arguments<'py> for PyArgs<'py> {
742
757
}
743
758
744
759
impl < ' py > PositionalArgs < ' py > for PyPosArgs < ' py > {
745
- type Item < ' a > = Borrowed < ' a , ' py , PyAny > where Self : ' a ;
760
+ type Item < ' a >
761
+ = Borrowed < ' a , ' py , PyAny >
762
+ where
763
+ Self : ' a ;
746
764
747
765
fn len ( & self ) -> usize {
748
766
self . 0 . len ( )
@@ -758,11 +776,13 @@ impl<'py> PositionalArgs<'py> for PyPosArgs<'py> {
758
776
}
759
777
760
778
impl < ' py > KeywordArgs < ' py > for PyKwargs < ' py > {
761
- type Key < ' a > = Bound < ' py , PyAny >
779
+ type Key < ' a >
780
+ = Bound < ' py , PyAny >
762
781
where
763
782
Self : ' a ;
764
783
765
- type Item < ' a > = Bound < ' py , PyAny >
784
+ type Item < ' a >
785
+ = Bound < ' py , PyAny >
766
786
where
767
787
Self : ' a ;
768
788
@@ -790,11 +810,13 @@ pub enum GenericPyMapping<'a, 'py> {
790
810
}
791
811
792
812
impl < ' py > ValidatedDict < ' py > for GenericPyMapping < ' _ , ' py > {
793
- type Key < ' a > = Bound < ' py , PyAny >
813
+ type Key < ' a >
814
+ = Bound < ' py , PyAny >
794
815
where
795
816
Self : ' a ;
796
817
797
- type Item < ' a > = Bound < ' py , PyAny >
818
+ type Item < ' a >
819
+ = Bound < ' py , PyAny >
798
820
where
799
821
Self : ' a ;
800
822
0 commit comments