summaryrefslogtreecommitdiff
path: root/src/sys/termios.rs
diff options
context:
space:
mode:
authorFlorian Hartwig <florian.j.hartwig@gmail.com>2015-04-03 18:25:24 +0200
committerFlorian Hartwig <florian.j.hartwig@gmail.com>2015-04-03 20:55:39 +0200
commite5ae756203a036aafed472a3e83af6941f546887 (patch)
treebd56240c7dd9e5e23df6005417905a3fa52198a2 /src/sys/termios.rs
parent7d48278859cabcf0e08df27e1d5f839a1694fb1f (diff)
downloadnix-e5ae756203a036aafed472a3e83af6941f546887.zip
'derive(Copy)' needs Clone now
Diffstat (limited to 'src/sys/termios.rs')
-rw-r--r--src/sys/termios.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sys/termios.rs b/src/sys/termios.rs
index c5758fe0..57612f0b 100644
--- a/src/sys/termios.rs
+++ b/src/sys/termios.rs
@@ -98,7 +98,7 @@ mod ffi {
pub type speed_t = c_ulong;
#[repr(C)]
- #[derive(Copy)]
+ #[derive(Clone, Copy)]
pub struct Termios {
pub c_iflag: InputFlags,
pub c_oflag: OutputFlags,
@@ -224,7 +224,7 @@ mod ffi {
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
// See https://github.com/rust-lang/rust/issues/10374.
- #[derive(Copy)]
+ #[derive(Clone, Copy)]
#[repr(C)]
pub enum SetArg {
TCSANOW = 0,
@@ -235,7 +235,7 @@ mod ffi {
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
// See https://github.com/rust-lang/rust/issues/10374.
- #[derive(Copy)]
+ #[derive(Clone, Copy)]
#[repr(C)]
pub enum FlushArg {
TCIFLUSH = 1,
@@ -245,7 +245,7 @@ mod ffi {
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
// See https://github.com/rust-lang/rust/issues/10374.
- #[derive(Copy)]
+ #[derive(Clone, Copy)]
#[repr(C)]
pub enum FlowArg {
TCOOFF = 1,
@@ -264,7 +264,7 @@ mod ffi {
pub type speed_t = c_uint;
#[repr(C)]
- #[derive(Copy)]
+ #[derive(Clone, Copy)]
pub struct Termios {
pub c_iflag: InputFlags,
pub c_oflag: OutputFlags,
@@ -378,7 +378,7 @@ mod ffi {
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
// See https://github.com/rust-lang/rust/issues/10374.
- #[derive(Copy)]
+ #[derive(Clone, Copy)]
#[repr(C)]
pub enum SetArg {
TCSANOW = 0,
@@ -388,7 +388,7 @@ mod ffi {
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
// See https://github.com/rust-lang/rust/issues/10374.
- #[derive(Copy)]
+ #[derive(Clone, Copy)]
#[repr(C)]
pub enum FlushArg {
TCIFLUSH = 0,
@@ -398,7 +398,7 @@ mod ffi {
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
// See https://github.com/rust-lang/rust/issues/10374.
- #[derive(Copy)]
+ #[derive(Clone, Copy)]
#[repr(C)]
pub enum FlowArg {
TCOOFF = 0,