aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-12-01 04:13:50 +0000
committerBlaž Hrastnik2021-12-01 04:13:50 +0000
commit662ecf0cd439bc850eee37717ecb49eebf497a24 (patch)
tree1185c0996b5ea8a30c708799bf77a5f61604de54 /helix-view
parent259678585c3410044683bf4d2619b2d024a04514 (diff)
Annotate Theme::highlight with #[inline]
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/theme.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs
index 2366ff7d..47fc6262 100644
--- a/helix-view/src/theme.rs
+++ b/helix-view/src/theme.rs
@@ -132,6 +132,7 @@ impl<'de> Deserialize<'de> for Theme {
}
impl Theme {
+ #[inline]
pub fn highlight(&self, index: usize) -> Style {
self.highlights[index]
}