Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 847af46

Browse files
committed
fix: don't let 'q' quit instantly if it's still collecting files.
1 parent d55602a commit 847af46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/traverse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl Traversal {
9393
}
9494

9595
pub fn is_costly(&self) -> bool {
96-
self.cost.is_some_and(|d| d.as_secs_f32() > 10.0)
96+
self.cost.is_none_or(|d| d.as_secs_f32() > 10.0)
9797
}
9898
}
9999

0 commit comments

Comments
 (0)