{"action":"closed","issue":{"url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/442","labels_url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/442/comments","events_url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/442/events","html_url":"https://github.com/AngryLawyer/rust-sdl2/issues/442","id":97606895,"number":442,"title":"Replace zero-size structs in FFI with empty enums","user":{"login":"nukep","id":1551458,"avatar_url":"https://avatars.githubusercontent.com/u/1551458?v=3","gravatar_id":"","url":"https://api.github.com/users/nukep","html_url":"https://github.com/nukep","followers_url":"https://api.github.com/users/nukep/followers","following_url":"https://api.github.com/users/nukep/following{/other_user}","gists_url":"https://api.github.com/users/nukep/gists{/gist_id}","starred_url":"https://api.github.com/users/nukep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nukep/subscriptions","organizations_url":"https://api.github.com/users/nukep/orgs","repos_url":"https://api.github.com/users/nukep/repos","events_url":"https://api.github.com/users/nukep/events{/privacy}","received_events_url":"https://api.github.com/users/nukep/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-28T03:34:52Z","updated_at":"2015-08-03T12:18:33Z","closed_at":"2015-08-03T12:18:33Z","body":"In Rust nightly, a bunch of warnings are being emitted for zero-size structs in sdl2-sys:\r\nhttps://travis-ci.org/AngryLawyer/rust-sdl2/jobs/72803339\r\n\r\nThese are opaque types, and it isn't appropriate to add any fields to them. A mentioned alternative in https://github.com/rust-lang/rust/issues/27303 is to use `enum MyStruct {}` instead."}}