Skip to content

Commit 69a64ba

Browse files
taiki-egnzlbg
authored andcommitted
Change imports in std_detect to edition-agnostic style
1 parent e8ed083 commit 69a64ba

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

crates/std_detect/src/detect/cache.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
44
#![allow(dead_code)] // not used on all platforms
55

6-
use sync::atomic::Ordering;
6+
use crate::sync::atomic::Ordering;
77

88
#[cfg(target_pointer_width = "64")]
9-
use sync::atomic::AtomicU64;
9+
use crate::sync::atomic::AtomicU64;
1010

1111
#[cfg(target_pointer_width = "32")]
12-
use sync::atomic::AtomicU32;
12+
use crate::sync::atomic::AtomicU32;
1313

1414
/// Sets the `bit` of `x`.
1515
#[inline]

crates/std_detect/src/detect/os/freebsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cfg_if! {
55
mod aarch64;
66
pub use self::aarch64::check_for;
77
} else {
8-
use arch::detect::Feature;
8+
use crate::arch::detect::Feature;
99
/// Performs run-time feature detection.
1010
pub fn check_for(_x: Feature) -> bool {
1111
false

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![cfg_attr(not(target_arch = "aarch64"), allow(dead_code))]
33

44
#[cfg(feature = "std_detect_file_io")]
5-
use ::{fs::File, io::Read};
5+
use crate::{fs::File, io::Read};
66

77
/// Key to access the CPU Hardware capabilities bitfield.
88
pub(crate) const AT_HWCAP: usize = 16;

crates/std_detect/src/detect/os/x86.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//! x86 run-time feature detection is OS independent.
22
33
#[cfg(target_arch = "x86")]
4-
use arch::x86::*;
4+
use crate::arch::x86::*;
55
#[cfg(target_arch = "x86_64")]
6-
use arch::x86_64::*;
6+
use crate::arch::x86_64::*;
77

8-
use mem;
8+
use crate::mem;
99

1010
use crate::detect::{Feature, cache, bit};
1111

0 commit comments

Comments
 (0)