File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1363,11 +1363,7 @@ mod tests {
1363
1363
// rustfmt-on-save.
1364
1364
impl Read for ShortReader {
1365
1365
fn read ( & mut self , _: & mut [ u8 ] ) -> io:: Result < usize > {
1366
- if self . lengths . is_empty ( ) {
1367
- Ok ( 0 )
1368
- } else {
1369
- Ok ( self . lengths . remove ( 0 ) )
1370
- }
1366
+ if self . lengths . is_empty ( ) { Ok ( 0 ) } else { Ok ( self . lengths . remove ( 0 ) ) }
1371
1367
}
1372
1368
}
1373
1369
@@ -1795,7 +1791,7 @@ mod tests {
1795
1791
1796
1792
match self . max_writes {
1797
1793
Some ( 0 ) if self . error_after_max_writes => {
1798
- return Err ( io:: Error :: new ( io:: ErrorKind :: Other , "test - max_writes" ) )
1794
+ return Err ( io:: Error :: new ( io:: ErrorKind :: Other , "test - max_writes" ) ) ;
1799
1795
}
1800
1796
Some ( 0 ) => return Ok ( 0 ) ,
1801
1797
Some ( ref mut count) => * count -= 1 ,
You can’t perform that action at this time.
0 commit comments