INNER CODE UNIT · Rust
Some
Drew-Alleman/DataSurgeon · src/main.rs:469
if let Some(capture_match) = capture.get(0) {
let filtered_capture: String = capture_match.as_str().to_string();
if !self.is_worthy(&filtered_capture) {
continue;
}
// Attempt to insert the captured item into the hashmap
match capture_set.insert(filtered_capture.clone()) {
// If we can't because the matched item was already found, move to the next match
false => continue,
true => {
self.handle_message(&filtered_capture.to_owned(), &content_type);
if !self.thorough {
return;
}
}
}
}
}