diff options
Diffstat (limited to 'src/database.rs')
-rw-r--r-- | src/database.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/database.rs b/src/database.rs index 6c558fe..f422d23 100644 --- a/src/database.rs +++ b/src/database.rs @@ -38,6 +38,12 @@ pub struct Task { pub tags: String, } +impl ToString for Task { + fn to_string(&self) -> String { + format!("{} #{}", self.task_name, self.tags) + } +} + #[derive( Debug, Clone, |