use regex::Regex; pub struct Match { pub column: String, pub regex: Regex, pub invert: bool, } impl Match { #[allow(clippy::trivial_regex)] pub fn new() -> Result> { Ok(Match { column: String::new(), regex: Regex::new("")?, invert: false, }) } }