summaryrefslogtreecommitdiffstats
path: root/src/commands/parent_directory.rs
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2019-02-15 19:13:42 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2019-02-15 19:37:29 -0800
commit8b04fec104cd20b86ff98f4da225bb866a407f8c (patch)
treef9b58da3f2a107d136a66c61d08dead883965864 /src/commands/parent_directory.rs
parent055ac602929af367da2af77999e73de6bf8fd344 (diff)
Fix most clippy lints
Diffstat (limited to 'src/commands/parent_directory.rs')
-rw-r--r--src/commands/parent_directory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/parent_directory.rs b/src/commands/parent_directory.rs
index d9066c6..d158d3b 100644
--- a/src/commands/parent_directory.rs
+++ b/src/commands/parent_directory.rs
@@ -17,7 +17,7 @@ impl ParentDirectory {
}
pub fn parent_directory(context: &mut JoshutoContext) {
- if context.curr_tab_mut().curr_path.pop() == false {
+ if !context.curr_tab_mut().curr_path.pop() {
return;
}