]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #52995 - cramertj:smaller-await, r=withoutboats
authorkennytm <kennytm@gmail.com>
Sat, 4 Aug 2018 06:35:53 +0000 (14:35 +0800)
committerGitHub <noreply@github.com>
Sat, 4 Aug 2018 06:35:53 +0000 (14:35 +0800)
commit59bfa8a884165bcd0bc73d9065673deb39ff695a
tree711bebb3a1e911388b3d7a132d2aae9e77f2ffed
parenta3653828265ee42d8db52056211ffc375017cf99
parent3a93e914ebe317a2b8267401e65e137961afc851
Rollup merge of #52995 - cramertj:smaller-await, r=withoutboats

Remove unnecessary local in await! generator

This makes `async { await!(future::ready(())) }` 4 bytes instead of 16. [Playground example](http://play.rust-lang.org/?gist=54c075599b9ff390fe505c75d6b98feb&version=nightly&mode=debug&edition=2018)