mirror of
https://github.com/veeso/termscp.git
synced 2026-09-27 06:21:22 -07:00
chore: enable safe clippy pedantic lints
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user