fwd/vendor/unicode-ident/tests/fst/mod.rs
John Doty 9c435dc440 Vendor dependencies
Let's see how I like this workflow.
2022-12-19 08:38:22 -08:00

11 lines
385 B
Rust

#![allow(clippy::module_name_repetitions)]
pub fn xid_start_fst() -> fst::Set<&'static [u8]> {
let data = include_bytes!("xid_start.fst");
fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap())
}
pub fn xid_continue_fst() -> fst::Set<&'static [u8]> {
let data = include_bytes!("xid_continue.fst");
fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap())
}