about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-06-15 22:59:20 +0100
committerManish Goregaokar <manishsmail@gmail.com>2016-06-16 01:39:44 +0100
commit2675a55a8fc9dcd13ed824c82fe7a921ae050d64 (patch)
treeb4fa7dad1ada3400b3dd399cb1416bca13b25771 /src/liballoc_jemalloc
parentd84993b054faf9ac73239f73f5edad949f7d5341 (diff)
parent8531d581046ad782e19ee0e877ef3819a7c123ba (diff)
downloadrust-2675a55a8fc9dcd13ed824c82fe7a921ae050d64.tar.gz
rust-2675a55a8fc9dcd13ed824c82fe7a921ae050d64.zip
Rollup merge of #34268 - zackmdavis:if_let_over_none_unit_arm, r=jseyfried
prefer `if let` to match with `None => ()` arm in some places

Casual grepping revealed some places in the codebase (some of which
antedated `if let`'s December 2014 stabilization in c200ae5a) where we
were using a match with a `None => ()` arm where (in the present
author's opinion) an `if let` conditional would be more readable. (Other
places where matching to the unit value did seem to better express the
intent were left alone.)

It's likely that we don't care about making such trivial,
non-functional, sheerly æsthetic changes.

But if we do, this is a patch.
Diffstat (limited to 'src/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions