File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -683,7 +683,11 @@ impl PySet {
683
683
}
684
684
685
685
#[ pymethod]
686
- fn difference_update ( zelf : PyRef < Self > , others : PosArgs < PyObjectRef > , vm : & VirtualMachine ) -> PyResult < ( ) > {
686
+ fn difference_update (
687
+ zelf : PyRef < Self > ,
688
+ others : PosArgs < PyObjectRef > ,
689
+ vm : & VirtualMachine ,
690
+ ) -> PyResult < ( ) > {
687
691
let arguments = others. into_vec ( ) ;
688
692
if arguments. len ( ) == 1 {
689
693
if let Some ( iterable) = arguments. first ( ) {
@@ -729,7 +733,8 @@ impl PySet {
729
733
} else if arguments. is_empty ( ) {
730
734
return Ok ( ( ) ) ;
731
735
}
732
- zelf. inner . symmetric_difference_update ( arguments. into_iter ( ) , vm) ?;
736
+ zelf. inner
737
+ . symmetric_difference_update ( arguments. into_iter ( ) , vm) ?;
733
738
Ok ( ( ) )
734
739
}
735
740
@@ -742,7 +747,8 @@ impl PySet {
742
747
zelf. inner . clear ( ) ;
743
748
return Ok ( zelf) ;
744
749
}
745
- zelf. inner . symmetric_difference_update ( std:: iter:: once ( set) , vm) ?;
750
+ zelf. inner
751
+ . symmetric_difference_update ( std:: iter:: once ( set) , vm) ?;
746
752
Ok ( zelf)
747
753
}
748
754
You can’t perform that action at this time.
0 commit comments