Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 34922be

Browse files
committed
remove num_cpus test from test-cargo-miri
1 parent 00b382d commit 34922be

File tree

3 files changed

+6
-29
lines changed

3 files changed

+6
-29
lines changed

test-cargo-miri/Cargo.lock

Lines changed: 1 addition & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-cargo-miri/subcrate/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ path = "test.rs"
1818
harness = false
1919

2020
[dev-dependencies]
21-
num_cpus = "1.10.1"
21+
byteorder = "1.0"

test-cargo-miri/subcrate/test.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use std::env;
22

3+
use byteorder::{ByteOrder, LittleEndian};
4+
35
fn main() {
46
println!("subcrate testing");
57

@@ -11,6 +13,6 @@ fn main() {
1113
let crate_dir = crate_dir.to_string_lossy().replace("\\", "/");
1214
assert_eq!(env_dir, crate_dir);
1315

14-
// Make sure we can call `num_cpus`.
15-
num_cpus::get();
16+
// Make sure we can call dev-dependencies.
17+
let _n = <LittleEndian as ByteOrder>::read_u32(&[1, 2, 3, 4]);
1618
}

0 commit comments

Comments
 (0)