Skip to content

Commit

Permalink
Guarantee to work without std library (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbkaisetsu authored Sep 17, 2023
1 parent 5b4e52f commit 4a4d4e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ fn trie_match_inner(input: ExprMatch) -> Result<TokenStream, Error> {
return __TrieMatchValue::#wildcard_ident;
}
out_checks.get_unchecked(pos).0
})( ::std::convert::AsRef::<[u8]>::as_ref( #expr ) ) {
})( ::core::convert::AsRef::<[u8]>::as_ref( #expr ) ) {
#( #arm, )*
}
}
Expand Down
2 changes: 2 additions & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![no_std]

use trie_match::trie_match;

#[test]
Expand Down

0 comments on commit 4a4d4e3

Please sign in to comment.