Annotate Theme::highlight with #[inline]

This commit is contained in:
Blaž Hrastnik 2021-12-01 13:13:50 +09:00
parent 259678585c
commit 662ecf0cd4

View file

@ -132,6 +132,7 @@ impl<'de> Deserialize<'de> for Theme {
}
impl Theme {
#[inline]
pub fn highlight(&self, index: usize) -> Style {
self.highlights[index]
}