Skip to content

Commit

Permalink
Comment unwrap of u32 to usize
Browse files Browse the repository at this point in the history
  • Loading branch information
Xophmeister committed Dec 2, 2024
1 parent 4797f6b commit 5c35e05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions topiary-tree-sitter-facade/src/query_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ mod wasm {
impl<'tree> QueryMatch<'tree> {
#[inline]
pub fn pattern_index(&self) -> usize {
// On WASM32, usize is the same as u32, so the unwrap is safe
self.inner.pattern().try_into().unwrap()
}

Expand Down

0 comments on commit 5c35e05

Please sign in to comment.