Commit d244118
authored
Rollup merge of rust-lang#37565 - mglagla:peek_use_as_ref, r=alexcrichton
Peekable::peek(): Use Option::as_ref()
Replace the match expression in .peek() with Option::as_ref() since it's the same functionality.1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1374 | 1374 | | |
1375 | 1375 | | |
1376 | 1376 | | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
| 1377 | + | |
1381 | 1378 | | |
1382 | 1379 | | |
1383 | 1380 | | |
| |||
0 commit comments