Skip to content

Commit 46cee95

Browse files
authored
add Copy and Clone impls
1 parent 1ca558d commit 46cee95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/redox/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ pub type speed_t = u32;
3535
pub type suseconds_t = ::c_int;
3636
pub type tcflag_t = u32;
3737
pub type time_t = ::c_long;
38+
39+
#[cfg_attr(feature = "extra_traits", derive(Debug))]
3840
pub enum timezone {}
41+
impl ::Copy for timezone {}
42+
impl ::Clone for timezone {
43+
fn clone(&self) -> timezone { *self }
44+
}
3945

4046
s! {
4147
pub struct addrinfo {

0 commit comments

Comments
 (0)