@@ -98,7 +98,7 @@ mod ffi {
98
98
pub type speed_t = c_ulong ;
99
99
100
100
#[ repr( C ) ]
101
- #[ derive( Copy ) ]
101
+ #[ derive( Clone , Copy ) ]
102
102
pub struct Termios {
103
103
pub c_iflag : InputFlags ,
104
104
pub c_oflag : OutputFlags ,
@@ -224,7 +224,7 @@ mod ffi {
224
224
225
225
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
226
226
// See https://github.com/rust-lang/rust/issues/10374.
227
- #[ derive( Copy ) ]
227
+ #[ derive( Clone , Copy ) ]
228
228
#[ repr( C ) ]
229
229
pub enum SetArg {
230
230
TCSANOW = 0 ,
@@ -235,7 +235,7 @@ mod ffi {
235
235
236
236
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
237
237
// See https://github.com/rust-lang/rust/issues/10374.
238
- #[ derive( Copy ) ]
238
+ #[ derive( Clone , Copy ) ]
239
239
#[ repr( C ) ]
240
240
pub enum FlushArg {
241
241
TCIFLUSH = 1 ,
@@ -245,7 +245,7 @@ mod ffi {
245
245
246
246
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
247
247
// See https://github.com/rust-lang/rust/issues/10374.
248
- #[ derive( Copy ) ]
248
+ #[ derive( Clone , Copy ) ]
249
249
#[ repr( C ) ]
250
250
pub enum FlowArg {
251
251
TCOOFF = 1 ,
@@ -264,7 +264,7 @@ mod ffi {
264
264
pub type speed_t = c_uint ;
265
265
266
266
#[ repr( C ) ]
267
- #[ derive( Copy ) ]
267
+ #[ derive( Clone , Copy ) ]
268
268
pub struct Termios {
269
269
pub c_iflag : InputFlags ,
270
270
pub c_oflag : OutputFlags ,
@@ -378,7 +378,7 @@ mod ffi {
378
378
379
379
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
380
380
// See https://github.com/rust-lang/rust/issues/10374.
381
- #[ derive( Copy ) ]
381
+ #[ derive( Clone , Copy ) ]
382
382
#[ repr( C ) ]
383
383
pub enum SetArg {
384
384
TCSANOW = 0 ,
@@ -388,7 +388,7 @@ mod ffi {
388
388
389
389
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
390
390
// See https://github.com/rust-lang/rust/issues/10374.
391
- #[ derive( Copy ) ]
391
+ #[ derive( Clone , Copy ) ]
392
392
#[ repr( C ) ]
393
393
pub enum FlushArg {
394
394
TCIFLUSH = 0 ,
@@ -398,7 +398,7 @@ mod ffi {
398
398
399
399
// XXX: We're using `repr(C)` because `c_int` doesn't work here.
400
400
// See https://github.com/rust-lang/rust/issues/10374.
401
- #[ derive( Copy ) ]
401
+ #[ derive( Clone , Copy ) ]
402
402
#[ repr( C ) ]
403
403
pub enum FlowArg {
404
404
TCOOFF = 0 ,
0 commit comments