{"action":"created","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/217","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/217/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/217/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/217","id":102436515,"number":217,"title":"Suggest using operator instead of explicit operator method call","user":{"login":"Robzz","id":304428,"avatar_url":"https://avatars.githubusercontent.com/u/304428?v=3","gravatar_id":"","url":"https://api.github.com/users/Robzz","html_url":"https://github.com/Robzz","followers_url":"https://api.github.com/users/Robzz/followers","following_url":"https://api.github.com/users/Robzz/following{/other_user}","gists_url":"https://api.github.com/users/Robzz/gists{/gist_id}","starred_url":"https://api.github.com/users/Robzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Robzz/subscriptions","organizations_url":"https://api.github.com/users/Robzz/orgs","repos_url":"https://api.github.com/users/Robzz/repos","events_url":"https://api.github.com/users/Robzz/events{/privacy}","received_events_url":"https://api.github.com/users/Robzz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-21T18:17:26Z","updated_at":"2015-08-21T20:51:10Z","closed_at":null,"body":"This lint would trigger on something like\r\n```rust\r\nlet i: i32 = 5;\r\nlet b = i.add(3);\r\n```\r\nAnd suggest something along the lines of `this expression can be simplified to 'i + 3'` This makes the code more concise and IMHO a bit clearer. This should probably be `Allow` by default.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/comments/133560632","html_url":"https://github.com/Manishearth/rust-clippy/issues/217#issuecomment-133560632","issue_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/217","id":133560632,"user":{"login":"llogiq","id":4200835,"avatar_url":"https://avatars.githubusercontent.com/u/4200835?v=3","gravatar_id":"","url":"https://api.github.com/users/llogiq","html_url":"https://github.com/llogiq","followers_url":"https://api.github.com/users/llogiq/followers","following_url":"https://api.github.com/users/llogiq/following{/other_user}","gists_url":"https://api.github.com/users/llogiq/gists{/gist_id}","starred_url":"https://api.github.com/users/llogiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llogiq/subscriptions","organizations_url":"https://api.github.com/users/llogiq/orgs","repos_url":"https://api.github.com/users/llogiq/repos","events_url":"https://api.github.com/users/llogiq/events{/privacy}","received_events_url":"https://api.github.com/users/llogiq/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T20:51:10Z","updated_at":"2015-08-21T20:51:10Z","body":"Also the lint should ensure that the `std::ops::Add::add(..)` function is actually the one that's called. Other types could conceivably have their own `add(..)` method without implementing `Add`."}}