summaryrefslogtreecommitdiff
path: root/src/sched.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/sched.rs
parent7d48278859cabcf0e08df27e1d5f839a1694fb1f (diff)
downloadnix-e5ae756203a036aafed472a3e83af6941f546887.zip
'derive(Copy)' needs Clone now
Diffstat (limited to 'src/sched.rs')
-rw-r--r--src/sched.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sched.rs b/src/sched.rs
index 4b6c955f..c1746f2e 100644
--- a/src/sched.rs
+++ b/src/sched.rs
@@ -89,7 +89,7 @@ pub type CpuMask = c_ulong;
// Structure representing the CPU set to apply
#[repr(C)]
-#[derive(Copy)]
+#[derive(Clone, Copy)]
pub struct CpuSet {
cpu_mask: [CpuMask; cpuset_attribs::CPU_SETSIZE/cpuset_attribs::CPU_MASK_BITS]
}