summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index b8645d5..d5ae5c5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -46,7 +46,8 @@ struct Entry {
impl Entry {
fn is_match(&self, needle: &str) -> bool {
- contains(&self.name, needle)
+ let text = serde_yaml::to_string(self).unwrap();
+ contains(&text, needle)
}
fn emails(&self) -> Vec<String> {