diff --git a/scie-scanner/src/scanner/scie_onig.rs b/scie-scanner/src/scanner/scie_onig.rs index d5e8dd93835902980ae4bbdec5c4250a58c34eba..3d7c87dbb4125348674239b5b5954c4f05148e30 100644 --- a/scie-scanner/src/scanner/scie_onig.rs +++ b/scie-scanner/src/scanner/scie_onig.rs @@ -21,7 +21,7 @@ pub struct ScieOnig { } impl ScieOnig { - pub fn hello(pattern: &str) -> Result { + pub fn new(pattern: &str) -> Result { let option = ScieOnigOptions::REGEX_OPTION_NONE; let syntax = Syntax::default(); @@ -58,7 +58,9 @@ impl ScieOnig { Err(ScieOnigError::from_code_and_info(err, &error)) } } - pub fn create_onig_scanner(_sources: Vec) {} + pub fn create_onig_scanner(_sources: Vec) { + + } } @@ -68,7 +70,7 @@ mod tests { #[test] fn it_works() { - ScieOnig::hello(r"^"); + ScieOnig::new(r"^"); assert!(true) } }