summaryrefslogtreecommitdiff
path: root/src/qif.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-01-02 22:55:32 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-01-02 22:55:32 +0200
commit5c473e577023f426af158f59424a0edec1afd6fc (patch)
tree893e01f679f527503bfc6415f20ec5e3023786f8 /src/qif.rs
parent1e02d6fc433d5c5fe94aec5e2ff61a0b91202ba7 (diff)
Improved error handling
Diffstat (limited to 'src/qif.rs')
-rw-r--r--src/qif.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qif.rs b/src/qif.rs
index 0f20394..687c570 100644
--- a/src/qif.rs
+++ b/src/qif.rs
@@ -14,15 +14,11 @@ impl QifFile {
}
}
- pub fn append_non_empty(&mut self, entry: QifEntry) {
+ pub fn push(&mut self, entry: QifEntry) {
if !entry.is_empty() {
self.entries.push(entry);
}
}
-
- pub fn append(&mut self, entry: QifEntry) {
- self.entries.push(entry);
- }
}
impl fmt::Display for QifFile {