{"action":"opened","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/917","repository_url":"https://api.github.com/repos/Manishearth/rust-clippy","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/917/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/917/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/917/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/917","id":154320772,"number":917,"title":"or_fun_call warns on enum variant construction.","user":{"login":"Stebalien","id":310393,"avatar_url":"https://avatars.githubusercontent.com/u/310393?v=3","gravatar_id":"","url":"https://api.github.com/users/Stebalien","html_url":"https://github.com/Stebalien","followers_url":"https://api.github.com/users/Stebalien/followers","following_url":"https://api.github.com/users/Stebalien/following{/other_user}","gists_url":"https://api.github.com/users/Stebalien/gists{/gist_id}","starred_url":"https://api.github.com/users/Stebalien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stebalien/subscriptions","organizations_url":"https://api.github.com/users/Stebalien/orgs","repos_url":"https://api.github.com/users/Stebalien/repos","events_url":"https://api.github.com/users/Stebalien/events{/privacy}","received_events_url":"https://api.github.com/users/Stebalien/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T19:16:40Z","updated_at":"2016-05-11T19:16:40Z","closed_at":null,"body":"I have the following line in my project:\r\n\r\n```rust\r\nself.write_to_fmt(&mut Adapter(f)).or(Err(fmt::Error))\r\n```\r\n\r\n`Err(fmt::Error)` is a constant but clippy complains that I'm calling a function."}}