]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #37565 - mglagla:peek_use_as_ref, r=alexcrichton
authorAlex Crichton <alex@alexcrichton.com>
Fri, 4 Nov 2016 23:49:31 +0000 (16:49 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 5 Nov 2016 17:50:23 +0000 (10:50 -0700)
Peekable::peek(): Use Option::as_ref()

Replace the match expression in .peek() with Option::as_ref() since it's the same functionality.

1  2 
src/libcore/iter/mod.rs

Simple merge