Skip to content

Commit 33ebdd1

Browse files
committed
Remove mod.rs
1 parent 66c863b commit 33ebdd1

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

crates/std_detect/src/detect/os/linux/cpuinfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl CpuInfo {
3333
}
3434

3535
#[cfg(test)]
36-
fn from_str(other: &str) -> Result<Self, ::std::io::Error> {
36+
fn from_str(other: &str) -> Result<Self, ()> {
3737
Ok(Self {
3838
raw: String::from(other),
3939
})

crates/std_detect/src/lib.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,21 @@
1212
//! * `powerpc64`: [`is_powerpc64_feature_detected`]
1313
1414
#![unstable(feature = "stdsimd", issue = "27731")]
15-
#![feature(
16-
const_fn,
17-
staged_api,
18-
stdsimd,
19-
doc_cfg,
20-
allow_internal_unstable,
21-
vec_spare_capacity
22-
)]
15+
#![feature(const_fn, staged_api, stdsimd, doc_cfg, allow_internal_unstable)]
2316
#![allow(clippy::shadow_reuse)]
2417
#![deny(clippy::missing_inline_in_public_items)]
25-
#![cfg_attr(target_os = "linux", feature(linkage))]
2618
#![cfg_attr(all(target_os = "freebsd", target_arch = "aarch64"), feature(llvm_asm))]
2719
#![cfg_attr(test, allow(unused_imports))]
20+
#![cfg_attr(feature = "std_detect_file_io", feature(vec_spare_capacity))]
2821
#![no_std]
2922

3023
#[cfg(feature = "std_detect_file_io")]
3124
extern crate alloc;
3225

26+
#[cfg(test)]
27+
#[macro_use]
28+
extern crate std;
29+
3330
#[doc(hidden)]
3431
#[unstable(feature = "stdsimd", issue = "27731")]
3532
pub mod detect;

crates/std_detect/src/mod.rs

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)