refactor: remove unused code

上级 c640c745
......@@ -11,20 +11,3 @@ pub mod grammar_registry;
pub mod inter;
pub mod reg_exp_source;
pub mod rule;
pub mod support;
#[cfg(test)]
mod tests {
use onig::*;
#[test]
fn should_run_for_onig() {
let regex = Regex::new("e(l+)").unwrap();
for (i, pos) in regex.captures("hello").unwrap().iter_pos().enumerate() {
match pos {
Some((beg, end)) => println!("Group {} captured in position {}:{}", i, beg, end),
None => println!("Group {} is not captured", i),
}
}
}
}
use std::any::{Any, TypeId};
pub fn get_type_of<T: ?Sized + Any>(_s: &T) -> TypeId {
TypeId::of::<T>()
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册