]> git.lizzy.rs Git - rust.git/commit
Fix: point to correct problem part of code
authorbootandy <bootandy@gmail.com>
Thu, 15 Feb 2018 14:56:12 +0000 (09:56 -0500)
committerbootandy <bootandy@gmail.com>
Mon, 19 Feb 2018 17:14:53 +0000 (12:14 -0500)
commit941e062fd41fd4eb73a1254d8da1acf9d751ce62
tree72e00e709bae6880076f46b711dc8b95f2efae7e
parent6b3487a916b22312cc67fef0d3ec49985fc1197b
Fix: point to correct problem part of code

Fix span so it no longer contains the whole train-wreck of code and only
points to the problem function (for the unwrap_or lint).

https://github.com/rust-lang-nursery/rust-clippy/issues/2422

Update ui test methods - it had several cases where the error message
span is now shorter
clippy_lints/src/methods.rs
tests/ui/methods.stderr
tests/ui/unwrap_or.rs [new file with mode: 0644]
tests/ui/unwrap_or.stderr [new file with mode: 0644]
tests/ui/unwrap_or.stdout [new file with mode: 0644]