Skip to content

Commit 55639f1

Browse files
committed
Small fixes
1 parent 5564aac commit 55639f1

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

library/std/src/os/custom/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
macro_rules! custom_os_impl {
4747
($module:ident, $method:ident $(, $arg:expr)*) => {{
4848
let errmsg = concat!(
49-
"std::os::", stringify!($module), "::IMPL",
49+
"std::os::custom::", stringify!($module), "::IMPL",
5050
" has not been initialized at this point",
5151
);
5252

library/std/src/sync/poison.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ impl Guard {
7070
/// bypass the poison checks.
7171
pub fn no_check() -> Self {
7272
// by setting `panicking` to true, `poison::Flag::done` doesn't call `thread::panicking`
73-
Self {
74-
panicking: true,
75-
}
73+
Self { panicking: true }
7674
}
7775
}
7876

library/std/src/sys/custom/thread_local_key.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use crate::sync::{RwLock, Mutex};
21
use crate::os::custom::thread::{ThreadId, IMPL};
2+
use crate::sync::{Mutex, RwLock};
33

44
pub type Key = usize;
55

0 commit comments

Comments
 (0)