From 06aca7691c845d129abc49fb649ea7c42376a077 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Wed, 24 Mar 2021 14:52:13 +0900 Subject: clippy lint --- helix-core/src/history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-core/src/history.rs') diff --git a/helix-core/src/history.rs b/helix-core/src/history.rs index c92c2a89..13a2a020 100644 --- a/helix-core/src/history.rs +++ b/helix-core/src/history.rs @@ -53,7 +53,7 @@ impl History { } #[inline] - pub fn at_root(&self) -> bool { + pub const fn at_root(&self) -> bool { self.cursor == 0 } -- cgit v1.2.3-70-g09d2