Skip to content

Commit 2c4dc4f

Browse files
Rollup merge of rust-lang#101423 - mkroening:hermit-warnings, r=sanxiyn
Fix hermit warnings This fixes two `unused_imprt` and one `dead_code` warning for hermit.
2 parents 8778809 + ce305f8 commit 2c4dc4f

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

library/std/src/sys/hermit/mutex.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use crate::cell::UnsafeCell;
22
use crate::collections::VecDeque;
33
use crate::hint;
44
use crate::ops::{Deref, DerefMut, Drop};
5-
use crate::ptr;
65
use crate::sync::atomic::{AtomicUsize, Ordering};
76
use crate::sys::hermit::abi;
87

library/std/src/sys/hermit/net.rs

-2
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,4 @@ pub mod netc {
487487

488488
#[derive(Copy, Clone)]
489489
pub struct sockaddr {}
490-
491-
pub type socklen_t = usize;
492490
}

library/std/src/sys/hermit/rwlock.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate::cell::UnsafeCell;
22
use crate::sys::locks::{MovableCondvar, Mutex};
3-
use crate::sys_common::lazy_box::{LazyBox, LazyInit};
43

54
pub struct RwLock {
65
lock: Mutex,

0 commit comments

Comments
 (0)