@@ -151,7 +151,7 @@ pub mod blocking {
151151 type Error = T :: Error ;
152152
153153 fn read ( & mut self , address : A , buffer : & mut [ u8 ] ) -> Result < ( ) , Self :: Error > {
154- ( * self ) . read ( address, buffer)
154+ T :: read ( self , address, buffer)
155155 }
156156 }
157157
@@ -183,7 +183,7 @@ pub mod blocking {
183183 type Error = T :: Error ;
184184
185185 fn write ( & mut self , address : A , bytes : & [ u8 ] ) -> Result < ( ) , Self :: Error > {
186- ( * self ) . write ( address, bytes)
186+ T :: write ( self , address, bytes)
187187 }
188188 }
189189
@@ -209,7 +209,7 @@ pub mod blocking {
209209 where
210210 B : IntoIterator < Item = u8 > ,
211211 {
212- ( * self ) . write_iter ( address, bytes)
212+ T :: write_iter ( self , address, bytes)
213213 }
214214 }
215215
@@ -257,7 +257,7 @@ pub mod blocking {
257257 bytes : & [ u8 ] ,
258258 buffer : & mut [ u8 ] ,
259259 ) -> Result < ( ) , Self :: Error > {
260- ( * self ) . write_read ( address, bytes, buffer)
260+ T :: write_read ( self , address, bytes, buffer)
261261 }
262262 }
263263
@@ -294,7 +294,7 @@ pub mod blocking {
294294 where
295295 B : IntoIterator < Item = u8 > ,
296296 {
297- ( * self ) . write_iter_read ( address, bytes, buffer)
297+ T :: write_iter_read ( self , address, bytes, buffer)
298298 }
299299 }
300300
@@ -344,7 +344,7 @@ pub mod blocking {
344344 address : A ,
345345 operations : & mut [ Operation < ' a > ] ,
346346 ) -> Result < ( ) , Self :: Error > {
347- ( * self ) . exec ( address, operations)
347+ T :: exec ( self , address, operations)
348348 }
349349 }
350350
@@ -380,7 +380,7 @@ pub mod blocking {
380380 where
381381 O : IntoIterator < Item = Operation < ' a > > ,
382382 {
383- ( * self ) . exec_iter ( address, operations)
383+ T :: exec_iter ( self , address, operations)
384384 }
385385 }
386386}
0 commit comments