This commit is contained in:
sxyazi 2024-08-23 18:24:33 +08:00
parent f1613e8a30
commit 7ff78e6cdb
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
#[cfg(unix)]
pub static USERS_CACHE: super::RoCell<uzers::UsersCache> = super::RoCell::new();
pub static USERS_CACHE: crate::RoCell<uzers::UsersCache> = crate::RoCell::new();
#[cfg(unix)]
pub fn hostname() -> Result<String, std::io::Error> {

View file

@ -1,6 +1,6 @@
use std::{env, path::PathBuf};
use crate::{fs::expand_path, USERS_CACHE};
use crate::fs::expand_path;
pub struct Xdg;
@ -48,7 +48,7 @@ impl Xdg {
#[cfg(unix)]
let s = {
use uzers::Users;
format!("yazi-{}", USERS_CACHE.get_current_uid())
format!("yazi-{}", crate::USERS_CACHE.get_current_uid())
};
#[cfg(windows)]