chore: enable safe clippy pedantic lints

This commit is contained in:
Christian Visintin
2026-04-19 01:54:46 +05:30
parent f044e6ace2
commit e11af03fdd
17 changed files with 50 additions and 36 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ impl SshKeyStorage {
/// Resolve host via termscp ssh keys storage
fn resolve_host_in_termscp_storage(&self, host: &str, username: &str) -> Option<&Path> {
let key: String = Self::make_mapkey(host, username);
self.hosts.get(&key).map(|x| x.as_path())
self.hosts.get(&key).map(PathBuf::as_path)
}
/// Resolve host via ssh2 configuration
+1 -1
View File
@@ -160,7 +160,7 @@ impl FsWatcher {
/// Returns the list of watched paths
pub fn watched_paths(&self) -> Vec<&Path> {
Vec::from_iter(self.paths.keys().map(|x| x.as_path()))
Vec::from_iter(self.paths.keys().map(PathBuf::as_path))
}
/// Unwatch provided path.