diff options
Diffstat (limited to 'src/annotation.rs')
-rw-r--r-- | src/annotation.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/annotation.rs b/src/annotation.rs index eb108e3..9ef3654 100644 --- a/src/annotation.rs +++ b/src/annotation.rs @@ -14,11 +14,10 @@ use date::Date; #[derive(Clone, Debug, Serialize, Deserialize)] pub struct Annotation { entry: Date, - description: String + description: String, } impl Annotation { - /// Create a new Annotation object pub fn new(entry: Date, description: String) -> Annotation { Annotation { @@ -46,9 +45,7 @@ impl Annotation { pub fn description_mut(&mut self) -> &mut String { &mut self.description } - } #[cfg(test)] -mod test { -} +mod test {} |