{"push_id":633445024,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"7ab9b692aa0be30237e56af5ee8a7e2c4a0027cd","before":"bd7fac7d8103c623cc4bdfce6c6dc0506c1cd961","commits":[{"sha":"7ab9b692aa0be30237e56af5ee8a7e2c4a0027cd","author":{"email":"550518ab9d14bd32155907315f74849d7b5c2b36@gmail.com","name":"Jorge Aparicio"},"message":"fix: `impl Clone` on generated structs/enums\n\nThe `Copy` trait requires that the implementor is also `Clone`. Currently,\ngenerated types have a `#[derive(Copy)]` but are missing the `Clone`\nimplementation.\n\nWith this patch, bindgen now adds a `Clone` implementation to each generated\nstruct/enum. Clone is implemented as a copy because the generated types already\nhave a `#[derive(Copy)]`\n\nSample output:\n\n```\n#[repr(C)]\n#[derive(Copy)]\npub struct Struct_termios {\n    pub c_iflag: tcflag_t,\n    pub c_oflag: tcflag_t,\n    pub c_cflag: tcflag_t,\n    pub c_lflag: tcflag_t,\n    pub c_line: cc_t,\n    pub c_cc: [cc_t; 32usize],\n    pub c_ispeed: speed_t,\n    pub c_ospeed: speed_t,\n}\nimpl ::std::clone::Clone for Struct_termios {\n    fn clone(&self) -> Struct_termios { *self }\n}\n\nimpl ::std::default::Default for Struct_termios {\n    fn default() -> Struct_termios { unsafe { ::std::mem::zeroed() } }\n}\n```","distinct":true,"url":"https://api.github.com/repos/crabtw/rust-bindgen/commits/7ab9b692aa0be30237e56af5ee8a7e2c4a0027cd"}]}