Skip to content

Commit

Permalink
Remove mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Feb 14, 2021
1 parent 66c863b commit 33ebdd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion crates/std_detect/src/detect/os/linux/cpuinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl CpuInfo {
}

#[cfg(test)]
fn from_str(other: &str) -> Result<Self, ::std::io::Error> {
fn from_str(other: &str) -> Result<Self, ()> {
Ok(Self {
raw: String::from(other),
})
Expand Down
15 changes: 6 additions & 9 deletions crates/std_detect/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,21 @@
//! * `powerpc64`: [`is_powerpc64_feature_detected`]
#![unstable(feature = "stdsimd", issue = "27731")]
#![feature(
const_fn,
staged_api,
stdsimd,
doc_cfg,
allow_internal_unstable,
vec_spare_capacity
)]
#![feature(const_fn, staged_api, stdsimd, doc_cfg, allow_internal_unstable)]
#![allow(clippy::shadow_reuse)]
#![deny(clippy::missing_inline_in_public_items)]
#![cfg_attr(target_os = "linux", feature(linkage))]
#![cfg_attr(all(target_os = "freebsd", target_arch = "aarch64"), feature(llvm_asm))]
#![cfg_attr(test, allow(unused_imports))]
#![cfg_attr(feature = "std_detect_file_io", feature(vec_spare_capacity))]
#![no_std]

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

#[cfg(test)]
#[macro_use]
extern crate std;

#[doc(hidden)]
#[unstable(feature = "stdsimd", issue = "27731")]
pub mod detect;
5 changes: 0 additions & 5 deletions crates/std_detect/src/mod.rs

This file was deleted.

0 comments on commit 33ebdd1

Please sign in to comment.