Add warn(unreachable_pub)
to rustc_errors
.
This commit is contained in:
parent
2b5621280c
commit
5fd503ab44
8 changed files with 36 additions and 35 deletions
|
@ -12,7 +12,7 @@
|
|||
use std::any::Any;
|
||||
|
||||
#[cfg(windows)]
|
||||
pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
|
||||
pub(crate) fn acquire_global_lock(name: &str) -> Box<dyn Any> {
|
||||
use std::ffi::CString;
|
||||
use std::io;
|
||||
|
||||
|
@ -80,6 +80,6 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
|
|||
}
|
||||
|
||||
#[cfg(not(windows))]
|
||||
pub fn acquire_global_lock(_name: &str) -> Box<dyn Any> {
|
||||
pub(crate) fn acquire_global_lock(_name: &str) -> Box<dyn Any> {
|
||||
Box::new(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue