diff options
author | Florian Hartwig <florian.j.hartwig@gmail.com> | 2015-04-03 18:25:24 +0200 |
---|---|---|
committer | Florian Hartwig <florian.j.hartwig@gmail.com> | 2015-04-03 20:55:39 +0200 |
commit | e5ae756203a036aafed472a3e83af6941f546887 (patch) | |
tree | bd56240c7dd9e5e23df6005417905a3fa52198a2 /src/fcntl.rs | |
parent | 7d48278859cabcf0e08df27e1d5f839a1694fb1f (diff) | |
download | nix-e5ae756203a036aafed472a3e83af6941f546887.zip |
'derive(Copy)' needs Clone now
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r-- | src/fcntl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs index 785096e7..2e2d8aa2 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -19,7 +19,7 @@ mod ffi { use libc::{c_int, c_short, off_t, pid_t}; #[repr(C)] - #[derive(Copy)] + #[derive(Clone, Copy)] pub struct flock { pub l_type: c_short, pub l_whence: c_short, @@ -47,7 +47,7 @@ mod ffi { use libc::{c_int, c_short, off_t, pid_t}; #[repr(C)] - #[derive(Copy)] + #[derive(Clone, Copy)] pub struct flock { pub l_start: off_t, pub l_len: off_t, |