Skip to content

Commit

Permalink
fix an import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackhr-arch committed Jun 29, 2024
1 parent 653cd17 commit ce4cb8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clashtui/backend/src/backend/impl_profile.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::ClashBackend;
use crate::utils::{extract_domain, get_file_names, ipc, is_yaml, parse_yaml};
use crate::{consts::TMP_PATH, utils::{extract_domain, get_file_names, ipc, is_yaml, parse_yaml}};
use std::{
fs::{create_dir_all, File},
io::Error,
Expand Down Expand Up @@ -547,7 +547,7 @@ fn try_create_file<P: AsRef<Path>>(path: P) -> Result<CrtFile, String> {
Err(e) => {
if e.kind() == std::io::ErrorKind::PermissionDenied {
Ok(CrtFile::Tmp(
File::create(crate::consts::TMP_PATH).map_err(|e| e.to_string())?,
File::create(TMP_PATH).map_err(|e| e.to_string())?,
))
} else {
Err(format!("Unexpected Error: {e}"))
Expand Down

0 comments on commit ce4cb8b

Please sign in to comment.