Skip to content

Commit

Permalink
fix merge call
Browse files Browse the repository at this point in the history
  • Loading branch information
mre authored and woolfg committed Mar 11, 2021
1 parent 5cc6726 commit 74fe53a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/bin/analyzer/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ fn main() -> Result<()> {
Ok(path) => {
println!("Merging {}", path.display());
let input = fs::read_to_string(path)?;
let mut parser = Parser::new(input);
let timeline = parser.parse()?;
let timeline: Timeline = serde_json::from_str(&input)?;
merger.merge_timeline(&timeline)?;
}
Err(e) => println!("{:?}", e),
Expand Down
2 changes: 1 addition & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn parse_date(line: &str) -> Result<Option<NaiveDate>> {
// Empty lines are allowed, but skipped
return Ok(None);
}
let date: NaiveDate = line.parse().context(format!("Invalid date {}", line))?;
let date: NaiveDate = line.parse().context(format!("Invalid date: {}", line))?;
Ok(Some(date))
}

Expand Down

0 comments on commit 74fe53a

Please sign in to comment.