@@ -93,7 +93,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
9393 . map ( |dict| dict. to_owned ( ) . unbind ( ) . into_bound ( py) )
9494 }
9595
96- type Arguments < ' a > = PyArgs < ' py > where Self : ' a ;
96+ type Arguments < ' a >
97+ = PyArgs < ' py >
98+ where
99+ Self : ' a ;
97100
98101 fn validate_args ( & self ) -> ValResult < PyArgs < ' py > > {
99102 if let Ok ( dict) = self . downcast :: < PyDict > ( ) {
@@ -350,7 +353,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
350353 Err ( ValError :: new ( error_type, self ) )
351354 }
352355
353- type Dict < ' a > = GenericPyMapping < ' a , ' py > where Self : ' a ;
356+ type Dict < ' a >
357+ = GenericPyMapping < ' a , ' py >
358+ where
359+ Self : ' a ;
354360
355361 fn strict_dict < ' a > ( & ' a self ) -> ValResult < GenericPyMapping < ' a , ' py > > {
356362 if let Ok ( dict) = self . downcast :: < PyDict > ( ) {
@@ -404,7 +410,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
404410 }
405411 }
406412
407- type List < ' a > = PySequenceIterable < ' a , ' py > where Self : ' a ;
413+ type List < ' a >
414+ = PySequenceIterable < ' a , ' py >
415+ where
416+ Self : ' a ;
408417
409418 fn validate_list < ' a > ( & ' a self , strict : bool ) -> ValMatch < PySequenceIterable < ' a , ' py > > {
410419 if let Ok ( list) = self . downcast :: < PyList > ( ) {
@@ -418,7 +427,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
418427 Err ( ValError :: new ( ErrorTypeDefaults :: ListType , self ) )
419428 }
420429
421- type Tuple < ' a > = PySequenceIterable < ' a , ' py > where Self : ' a ;
430+ type Tuple < ' a >
431+ = PySequenceIterable < ' a , ' py >
432+ where
433+ Self : ' a ;
422434
423435 fn validate_tuple < ' a > ( & ' a self , strict : bool ) -> ValMatch < PySequenceIterable < ' a , ' py > > {
424436 if let Ok ( tup) = self . downcast :: < PyTuple > ( ) {
@@ -432,7 +444,10 @@ impl<'py> Input<'py> for Bound<'py, PyAny> {
432444 Err ( ValError :: new ( ErrorTypeDefaults :: TupleType , self ) )
433445 }
434446
435- type Set < ' a > = PySequenceIterable < ' a , ' py > where Self : ' a ;
447+ type Set < ' a >
448+ = PySequenceIterable < ' a , ' py >
449+ where
450+ Self : ' a ;
436451
437452 fn validate_set < ' a > ( & ' a self , strict : bool ) -> ValMatch < PySequenceIterable < ' a , ' py > > {
438453 if let Ok ( set) = self . downcast :: < PySet > ( ) {
@@ -742,7 +757,10 @@ impl<'py> Arguments<'py> for PyArgs<'py> {
742757}
743758
744759impl < ' 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 ;
746764
747765 fn len ( & self ) -> usize {
748766 self . 0 . len ( )
@@ -758,11 +776,13 @@ impl<'py> PositionalArgs<'py> for PyPosArgs<'py> {
758776}
759777
760778impl < ' py > KeywordArgs < ' py > for PyKwargs < ' py > {
761- type Key < ' a > = Bound < ' py , PyAny >
779+ type Key < ' a >
780+ = Bound < ' py , PyAny >
762781 where
763782 Self : ' a ;
764783
765- type Item < ' a > = Bound < ' py , PyAny >
784+ type Item < ' a >
785+ = Bound < ' py , PyAny >
766786 where
767787 Self : ' a ;
768788
@@ -790,11 +810,13 @@ pub enum GenericPyMapping<'a, 'py> {
790810}
791811
792812impl < ' py > ValidatedDict < ' py > for GenericPyMapping < ' _ , ' py > {
793- type Key < ' a > = Bound < ' py , PyAny >
813+ type Key < ' a >
814+ = Bound < ' py , PyAny >
794815 where
795816 Self : ' a ;
796817
797- type Item < ' a > = Bound < ' py , PyAny >
818+ type Item < ' a >
819+ = Bound < ' py , PyAny >
798820 where
799821 Self : ' a ;
800822
0 commit comments