Skip to content

Commit

Permalink
Inline two methods (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV authored Nov 25, 2024
1 parent b97f371 commit 172416a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/remapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u16> {
self.0.get(old)
}
Expand Down

0 comments on commit 172416a

Please sign in to comment.