Skip to content

Commit

Permalink
Merge pull request #3 from chronotope/bump-version-0.1.1
Browse files Browse the repository at this point in the history
Bump version 0.1.1
  • Loading branch information
quodlibetor committed Oct 10, 2017
2 parents a243776 + b7a2511 commit afc1aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parse-zoneinfo"
version = "0.1.0"
version = "0.1.1"
authors = ["Djzin <djzin@users.noreply.github.com>"]
description = "Parse zoneinfo files from the IANA database"
keywords = ["date", "time", "timezone", "zone", "calendar"]
Expand Down
4 changes: 2 additions & 2 deletions src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl TableBuilder {
}
}

let mut zoneset = match self.table.zonesets.entry(zone_line.name.to_owned()) {
let zoneset: &mut _ = match self.table.zonesets.entry(zone_line.name.to_owned()) {
Entry::Occupied(_) => return Err(Error::DuplicateZone),
Entry::Vacant(e) => e.insert(Vec::new()),
};
Expand All @@ -298,7 +298,7 @@ impl TableBuilder {
/// Returns an error if the builder wasn’t expecting a continuation line
/// (meaning, the previous line wasn’t a zone line)
pub fn add_continuation_line(&mut self, continuation_line: line::ZoneInfo) -> Result<(), Error> {
let mut zoneset = match self.current_zoneset_name {
let zoneset: &mut _ = match self.current_zoneset_name {
Some(ref name) => self.table.zonesets.get_mut(name).unwrap(),
None => return Err(Error::SurpriseContinuationLine),
};
Expand Down

0 comments on commit afc1aac

Please sign in to comment.