From 172416a806246e6e9010d400d5690ca7a026e53d Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> Date: Mon, 25 Nov 2024 20:55:26 +0100 Subject: [PATCH] Inline two methods (#5) --- src/remapper.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/remapper.rs b/src/remapper.rs index 32d6773..a26da46 100644 --- a/src/remapper.rs +++ b/src/remapper.rs @@ -144,11 +144,13 @@ impl GlyphRemapper { /// Remap a glyph ID, or return the existing mapping if the /// glyph ID has already been remapped before. + #[inline] pub fn remap(&mut self, old: u16) -> u16 { self.0.remap(old) } /// Get the mapping of a glyph ID, if it has been remapped before. + #[inline] pub fn get(&self, old: u16) -> Option { self.0.get(old) }