]> git.lizzy.rs Git - rust.git/commit
Update OPTION_MAP_UNWRAP_OR lint
authorSeiichi Uchida <seuchida@gmail.com>
Fri, 6 Oct 2017 13:04:16 +0000 (22:04 +0900)
committerSeiichi Uchida <seuchida@gmail.com>
Fri, 6 Oct 2017 13:06:47 +0000 (22:06 +0900)
commitf5c941a4046398c261b8dad4109ac3732a0de1d5
tree985ee357fbd3d3db67cb151d7c7f4fd651cec8d7
parent12a7d1489aed893de9c6dc0a520e44cf3d349387
Update OPTION_MAP_UNWRAP_OR lint

Add a suggestion to replace `map(f).unwrap_or(None)` with `and_then(f)`.
clippy_lints/src/methods.rs
tests/ui/methods.rs
tests/ui/methods.stderr