summaryrefslogtreecommitdiffstats
path: root/src/tabs/revlog.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabs/revlog.rs')
-rw-r--r--src/tabs/revlog.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabs/revlog.rs b/src/tabs/revlog.rs
index 524550dd..cf4f966b 100644
--- a/src/tabs/revlog.rs
+++ b/src/tabs/revlog.rs
@@ -342,7 +342,7 @@ impl Revlog {
}
}
- fn is_in_search_mode(&self) -> bool {
+ const fn is_in_search_mode(&self) -> bool {
!matches!(self.search, LogSearch::Off)
}
@@ -396,7 +396,7 @@ impl Revlog {
);
}
- fn can_close_search(&self) -> bool {
+ const fn can_close_search(&self) -> bool {
self.is_in_search_mode() && !self.is_search_pending()
}