]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #53313 - llogiq:two-small-improvements, r=estebank
authorkennytm <kennytm@gmail.com>
Thu, 16 Aug 2018 16:13:20 +0000 (00:13 +0800)
committerGitHub <noreply@github.com>
Thu, 16 Aug 2018 16:13:20 +0000 (00:13 +0800)
Two small improvements

In `librustc_apfloat/ieee.rs`, use the iterator.[r]find methods to simplify the code. In `libserialize/json.rs`, make use of the fact that `Vec.last` on an empty `Vec` returns `None` to simplify the code to a single match.

1  2 
src/libserialize/json.rs

Simple merge