diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2019-01-02 22:55:32 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2019-01-02 22:55:32 +0200 |
commit | 5c473e577023f426af158f59424a0edec1afd6fc (patch) | |
tree | 893e01f679f527503bfc6415f20ec5e3023786f8 /src/qif.rs | |
parent | 1e02d6fc433d5c5fe94aec5e2ff61a0b91202ba7 (diff) |
Improved error handling
Diffstat (limited to 'src/qif.rs')
-rw-r--r-- | src/qif.rs | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 { |