summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-06 15:53:24 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-06 15:53:24 +0100
commit052d527c5f179380f67078cf423c8ae855a7b52a (patch)
treef0c74a75ff8eef8e16a3a5c2031c21774cfe7988 /src/tab.rs
parent214a07da9de5d1f4f6ec25d053216031b128c4b4 (diff)
clippy
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tab.rs b/src/tab.rs
index 94f1b38..1580507 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -339,7 +339,7 @@ impl Tab {
let Some(parent) = self.tree.root_path().parent() else {
return Ok(());
};
- self.set_pathcontent(&parent.to_owned())?;
+ self.set_pathcontent(parent.to_owned().as_ref())?;
self.make_tree(Some(self.path_content.sort_kind.clone()))
} else {
self.tree.select_parent();