From d8f1a6d115c4c79bb5dbe9041565be0ce209c2b3 Mon Sep 17 00:00:00 2001 From: rain-bus Date: Wed, 3 Jun 2026 19:07:50 +0800 Subject: [PATCH] fix: remove unused cfg(not(unix)) import, unify Path import, add mise.toml --- mise.toml | 2 ++ src/config/config_shell.rs | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 mise.toml diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..95d23b8 --- /dev/null +++ b/mise.toml @@ -0,0 +1,2 @@ +[tools] +rust = "latest" diff --git a/src/config/config_shell.rs b/src/config/config_shell.rs index f2763e8..cca1d2c 100644 --- a/src/config/config_shell.rs +++ b/src/config/config_shell.rs @@ -2,9 +2,7 @@ use super::{ConnectionProfile, ConnectionSource, ConnectionType, ShellCandidate, use anyhow::{Result, bail}; #[cfg(unix)] use std::fs; -#[cfg(not(unix))] -use std::path::Path; -use std::path::{PathBuf}; +use std::path::{Path, PathBuf}; impl super::SshellConfig { pub fn local_shell_candidates(&self) -> Vec {