mirror of
https://github.com/lahfir/agent-desktop.git
synced 2026-08-09 00:17:27 +00:00
fix: keep Windows private file build warning-free
This commit is contained in:
parent
793cceb8b7
commit
d0ce41fd84
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::path::{Path, PathBuf};
|
||||
use std::path::Path;
|
||||
|
||||
pub(super) fn ensure_private(path: &Path) -> std::io::Result<()> {
|
||||
#[cfg(windows)]
|
||||
|
|
@ -54,7 +54,7 @@ pub(super) fn ensure_user(path: &Path) -> std::io::Result<()> {
|
|||
fn ensure_directory_path(path: &Path) -> std::io::Result<()> {
|
||||
use std::os::unix::fs::{DirBuilderExt, MetadataExt};
|
||||
|
||||
let mut current = PathBuf::new();
|
||||
let mut current = std::path::PathBuf::new();
|
||||
for component in path.components() {
|
||||
match component {
|
||||
std::path::Component::CurDir => continue,
|
||||
|
|
|
|||
Loading…
Reference in a new issue