mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-05 07:27:46 +00:00
Fix more clippy warnings and remove redundant 'static
This commit is contained in:
parent
de7a6b5afa
commit
5160f47a9f
1 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ macro_rules! chars2string {
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
mod ut {
|
mod ut {
|
||||||
pub static DEFAULT_FILE: &'static str = "/var/run/utmp";
|
pub static DEFAULT_FILE: &str = "/var/run/utmp";
|
||||||
|
|
||||||
pub use libc::__UT_LINESIZE as UT_LINESIZE;
|
pub use libc::__UT_LINESIZE as UT_LINESIZE;
|
||||||
pub use libc::__UT_NAMESIZE as UT_NAMESIZE;
|
pub use libc::__UT_NAMESIZE as UT_NAMESIZE;
|
||||||
|
@ -85,7 +85,7 @@ mod ut {
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
mod ut {
|
mod ut {
|
||||||
pub static DEFAULT_FILE: &'static str = "/var/run/utmpx";
|
pub static DEFAULT_FILE: &str = "/var/run/utmpx";
|
||||||
|
|
||||||
pub use libc::_UTX_LINESIZE as UT_LINESIZE;
|
pub use libc::_UTX_LINESIZE as UT_LINESIZE;
|
||||||
pub use libc::_UTX_USERSIZE as UT_NAMESIZE;
|
pub use libc::_UTX_USERSIZE as UT_NAMESIZE;
|
||||||
|
@ -110,7 +110,7 @@ mod ut {
|
||||||
mod ut {
|
mod ut {
|
||||||
use super::libc;
|
use super::libc;
|
||||||
|
|
||||||
pub static DEFAULT_FILE: &'static str = "";
|
pub static DEFAULT_FILE: &str = "";
|
||||||
|
|
||||||
pub const UT_LINESIZE: usize = 16;
|
pub const UT_LINESIZE: usize = 16;
|
||||||
pub const UT_NAMESIZE: usize = 32;
|
pub const UT_NAMESIZE: usize = 32;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue