@@ -342,11 +342,7 @@ impl PyBytesInner {
342342 self . elements . py_add ( other)
343343 }
344344
345- pub fn contains (
346- & self ,
347- needle : Either < Self , PyIntRef > ,
348- vm : & VirtualMachine ,
349- ) -> PyResult < bool > {
345+ pub fn contains ( & self , needle : Either < Self , PyIntRef > , vm : & VirtualMachine ) -> PyResult < bool > {
350346 Ok ( match needle {
351347 Either :: A ( byte) => self . elements . contains_str ( byte. elements . as_slice ( ) ) ,
352348 Either :: B ( int) => self . elements . contains ( & int. as_bigint ( ) . byte_or ( vm) ?) ,
@@ -552,11 +548,7 @@ impl PyBytesInner {
552548 . py_count ( needle. as_slice ( ) , range, |h, n| h. find_iter ( n) . count ( ) ) )
553549 }
554550
555- pub fn join (
556- & self ,
557- iterable : ArgIterable < Self > ,
558- vm : & VirtualMachine ,
559- ) -> PyResult < Vec < u8 > > {
551+ pub fn join ( & self , iterable : ArgIterable < Self > , vm : & VirtualMachine ) -> PyResult < Vec < u8 > > {
560552 let iter = iterable. iter ( vm) ?;
561553 self . elements . py_join ( iter)
562554 }
@@ -575,11 +567,7 @@ impl PyBytesInner {
575567 Ok ( self . elements . py_find ( & needle, range, find) )
576568 }
577569
578- pub fn maketrans (
579- from : Self ,
580- to : Self ,
581- vm : & VirtualMachine ,
582- ) -> PyResult < Vec < u8 > > {
570+ pub fn maketrans ( from : Self , to : Self , vm : & VirtualMachine ) -> PyResult < Vec < u8 > > {
583571 if from. len ( ) != to. len ( ) {
584572 return Err ( vm. new_value_error ( "the two maketrans arguments must have equal length" ) ) ;
585573 }
@@ -703,11 +691,7 @@ impl PyBytesInner {
703691 Ok ( elements)
704692 }
705693
706- pub fn partition (
707- & self ,
708- sub : & Self ,
709- vm : & VirtualMachine ,
710- ) -> PyResult < ( Vec < u8 > , bool , Vec < u8 > ) > {
694+ pub fn partition ( & self , sub : & Self , vm : & VirtualMachine ) -> PyResult < ( Vec < u8 > , bool , Vec < u8 > ) > {
711695 self . elements . py_partition (
712696 & sub. elements ,
713697 || self . elements . splitn_str ( 2 , & sub. elements ) ,
@@ -815,12 +799,7 @@ impl PyBytesInner {
815799 result
816800 }
817801
818- pub fn replace_in_place (
819- & self ,
820- from : Self ,
821- to : Self ,
822- max_count : Option < usize > ,
823- ) -> Vec < u8 > {
802+ pub fn replace_in_place ( & self , from : Self , to : Self , max_count : Option < usize > ) -> Vec < u8 > {
824803 let len = from. len ( ) ;
825804 let mut iter = self . elements . find_iter ( & from. elements ) ;
826805
0 commit comments