]> git.lizzy.rs Git - rust.git/commit
Auto merge of #4945 - Areredify:as_deref, r=flip1995
authorbors <bors@rust-lang.org>
Thu, 23 Jan 2020 16:56:48 +0000 (16:56 +0000)
committerbors <bors@rust-lang.org>
Thu, 23 Jan 2020 16:56:48 +0000 (16:56 +0000)
commit676344770733adf2446f94a14b724286cf51cc66
treef29280358e0c16b74d58d39ddd587e8059c6081b
parenteff3bc5e1ee9e25532f1db2bf423eb8d8458bd94
parent796958c7e2afb765d0354007cb89c1312d8899e9
Auto merge of #4945 - Areredify:as_deref, r=flip1995

add `option_as_ref_deref` lint

changelog: add a new lint that lints `option.as_ref().map(Deref::deref)` (and similar calls), which could be expressed more succinctly as `option.as_deref[_mut]()`. Closes #4918.