We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40cb69d commit 82cb207Copy full SHA for 82cb207
src/libtest/lib.rs
@@ -1192,12 +1192,6 @@ fn get_concurrency() -> usize {
1192
}
1193
1194
1195
- #[cfg(target_os = "redox")]
1196
- fn num_cpus() -> usize {
1197
- // FIXME: Implement num_cpus on Redox
1198
- 1
1199
- }
1200
-
1201
#[cfg(target_os = "vxworks")]
1202
fn num_cpus() -> usize {
1203
// FIXME: Implement num_cpus on vxWorks
@@ -1220,7 +1214,8 @@ fn get_concurrency() -> usize {
1220
1214
target_os = "ios",
1221
1215
target_os = "linux",
1222
1216
target_os = "macos",
1223
- target_os = "solaris"
1217
+ target_os = "solaris",
1218
+ target_os = "redox",
1224
1219
))]
1225
1226
unsafe { libc::sysconf(libc::_SC_NPROCESSORS_ONLN) as usize }
0 commit comments