@@ -55,7 +55,8 @@ impl<S: Syscalls, C: Config> I2CMasterSlave<S, C> {
5555
5656            S :: subscribe :: < _ ,  _ ,  C ,  DRIVER_NUM ,  {  subscribe:: MASTER_WRITE  } > ( subscribe,  & called) ?; 
5757
58-             S :: command ( DRIVER_NUM ,  i2c_master_slave_cmd:: MASTER_WRITE ,  cmd_arg0,  0 ) . to_result ( ) ?; 
58+             S :: command ( DRIVER_NUM ,  i2c_master_slave_cmd:: MASTER_WRITE ,  cmd_arg0,  0 ) 
59+                 . to_result :: < ( ) ,  ErrorCode > ( ) ?; 
5960
6061            loop  { 
6162                S :: yield_wait ( ) ; 
@@ -113,7 +114,8 @@ impl<S: Syscalls, C: Config> I2CMasterSlave<S, C> {
113114            S :: subscribe :: < _ ,  _ ,  C ,  DRIVER_NUM ,  {  subscribe:: MASTER_READ  } > ( subscribe,  & called) ?; 
114115            // When this fails, `called` is guaranteed unmodified, 
115116            // because upcalls are never processed until we call `yield`. 
116-             S :: command ( DRIVER_NUM ,  i2c_master_slave_cmd:: MASTER_READ ,  cmd_arg0,  0 ) . to_result ( ) ?; 
117+             S :: command ( DRIVER_NUM ,  i2c_master_slave_cmd:: MASTER_READ ,  cmd_arg0,  0 ) 
118+                 . to_result :: < ( ) ,  ErrorCode > ( ) ?; 
117119
118120            loop  { 
119121                S :: yield_wait ( ) ; 
@@ -208,7 +210,7 @@ impl<S: Syscalls, C: Config> I2CMasterSlave<S, C> {
208210                cmd_arg0, 
209211                0 , 
210212            ) 
211-             . to_result ( ) ?; 
213+             . to_result :: < ( ) ,   ErrorCode > ( ) ?; 
212214
213215            loop  { 
214216                S :: yield_wait ( ) ; 
@@ -293,7 +295,8 @@ impl<S: Syscalls, C: Config> I2CMasterSlave<S, C> {
293295            S :: allow_rw :: < C ,  DRIVER_NUM ,  {  rw_allow:: SLAVE_RX  } > ( allow_rw,  buf) ?; 
294296            S :: subscribe :: < _ ,  _ ,  C ,  DRIVER_NUM ,  {  subscribe:: SLAVE_READ  } > ( subscribe,  & called) ?; 
295297
296-             S :: command ( DRIVER_NUM ,  i2c_master_slave_cmd:: SLAVE_START_LISTEN ,  0 ,  0 ) . to_result ( ) ?; 
298+             S :: command ( DRIVER_NUM ,  i2c_master_slave_cmd:: SLAVE_START_LISTEN ,  0 ,  0 ) 
299+                 . to_result :: < ( ) ,  ErrorCode > ( ) ?; 
297300
298301            loop  { 
299302                S :: yield_wait ( ) ; 
@@ -356,7 +359,7 @@ impl<S: Syscalls, C: Config> I2CMasterSlave<S, C> {
356359                len as  u32 , 
357360                0 , 
358361            ) 
359-             . to_result ( ) ?; 
362+             . to_result :: < ( ) ,   ErrorCode > ( ) ?; 
360363
361364            loop  { 
362365                S :: yield_wait ( ) ; 
0 commit comments