{"action":"opened","issue":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/1112","repository_url":"https://api.github.com/repos/rustwasm/wasm-bindgen","labels_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/1112/labels{/name}","comments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/1112/comments","events_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/1112/events","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/1112","id":391120705,"node_id":"MDU6SXNzdWUzOTExMjA3MDU=","number":1112,"title":"clippy error for imported js types","user":{"login":"ibaryshnikov","id":9951788,"node_id":"MDQ6VXNlcjk5NTE3ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/9951788?v=4","gravatar_id":"","url":"https://api.github.com/users/ibaryshnikov","html_url":"https://github.com/ibaryshnikov","followers_url":"https://api.github.com/users/ibaryshnikov/followers","following_url":"https://api.github.com/users/ibaryshnikov/following{/other_user}","gists_url":"https://api.github.com/users/ibaryshnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/ibaryshnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibaryshnikov/subscriptions","organizations_url":"https://api.github.com/users/ibaryshnikov/orgs","repos_url":"https://api.github.com/users/ibaryshnikov/repos","events_url":"https://api.github.com/users/ibaryshnikov/events{/privacy}","received_events_url":"https://api.github.com/users/ibaryshnikov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-14T13:55:41Z","updated_at":"2018-12-14T13:55:41Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Tried to run clippy in our project and got an error. Can be reproduced here in examples folder:\r\n```bash\r\ncd examples/duck-typed-interfaces\r\ncargo clippy\r\n```\r\nThe error is\r\n```\r\nerror: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.\r\n --> examples/duck-typed-interfaces/src/lib.rs:9:1\r\n  |\r\n9 | #[wasm_bindgen]\r\n  | ^^^^^^^^^^^^^^^\r\n  |\r\n  = note: #[deny(clippy::drop_ref)] on by default\r\n  = note: argument has type &wasm_bindgen::JsValue\r\n  = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/master/index.html#drop_ref\r\n```\r\n"}}
{"actor":{"display_login":"ibaryshnikov"}}