]> git.lizzy.rs Git - rust.git/commit
Two small improvements
authorAndre Bogus <bogusandre@gmail.com>
Mon, 13 Aug 2018 21:17:45 +0000 (23:17 +0200)
committerAndre Bogus <bogusandre@gmail.com>
Wed, 15 Aug 2018 11:54:47 +0000 (13:54 +0200)
commit4cae6650fd9f25c4fb1338c896783193392be1af
treec933b4557c6144e2366d1171c6b1aab67267d13f
parent81cfaad030435aae447d73c66123b3df856c09cb
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.
src/librustc_apfloat/ieee.rs
src/libserialize/json.rs