summaryrefslogtreecommitdiff
path: root/src/sched.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-07-24 16:47:26 -0600
committerAlan Somers <asomers@gmail.com>2021-07-24 18:25:44 -0600
commit86acc26cbcadfd572d6af93ba34467a3cdac8b4e (patch)
treee4d378d4a648259bf782262fd90c7a5709d67b77 /src/sched.rs
parente88a6cf2ec0b6bd042641f58618d6e72e2c624c4 (diff)
downloadnix-86acc26cbcadfd572d6af93ba34467a3cdac8b4e.zip
Constify many functions
Constify most functions that can be constified. The exceptions are mostly accessors for structs that have no const constructor.
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 bf51bc12..575bf24b 100644
--- a/src/sched.rs
+++ b/src/sched.rs
@@ -97,7 +97,7 @@ mod sched_linux_like {
}
/// Return the maximum number of CPU in CpuSet
- pub fn count() -> usize {
+ pub const fn count() -> usize {
8 * mem::size_of::<libc::cpu_set_t>()
}
}