(&self, hits: u64, latest_hit: Option<&str>)
| 72 | } |
| 73 | |
| 74 | pub fn finish(&self, hits: u64, latest_hit: Option<&str>) { |
| 75 | self.total_pb.finish_with_message("✅ Processing completed!"); |
| 76 | self.stats_pb.finish_with_message("✅ Finished!"); |
| 77 | |
| 78 | if hits > 1 { |
| 79 | self.hits_pb.finish_with_message(format!("🎉 Found {} phone numbers! Check output.txt", hits)); |
| 80 | } else if hits == 1 { |
| 81 | if let Some(hit) = latest_hit { |
| 82 | self.hits_pb.finish_with_message(format!("🎉 Found 1 phone number! {}", hit)); |
| 83 | } else { |
| 84 | self.hits_pb.finish_with_message("🎉 Found 1 phone number! Check output.txt"); |
| 85 | } |
| 86 | } else { |
| 87 | self.hits_pb.finish_with_message("😢 No valid phone numbers found"); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | // New methods for CSV processing mode |
| 92 |
nothing calls this directly
no outgoing calls
no test coverage detected