Skip to content

Commit

Permalink
Revert "docs: add comments"
Browse files Browse the repository at this point in the history
This reverts commit dd7dc8b.


Took 39 seconds
  • Loading branch information
net-tech committed Oct 17, 2023
1 parent dd7dc8b commit 1d55b85
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 21 deletions.
164 changes: 145 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ edition = "2021"
anyhow = "1.0.75"
chrono = "0.4.31"
humantime = "2.1.0"
indicatif = "0.17.6"
regex = "1.9.6"
reqwest = { version = "0.11.22", features = ["blocking"] }
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ fn main() -> Result<()> {
};

for (idx, join_date) in matches.iter().enumerate() {
// Add the date to add a valid DateTime.
let mut date: DateTime<Utc> = DateTime::parse_from_str(
&format!("{}T{}", log_date, join_date),
"%Y/%m/%dT%H:%M:%S%.3f%z",
)
.with_context(|| format!("Could not parse date `{}T{}`", log_date, join_date))?
// Convert to UTC.
.try_into()
.with_context(|| format!("Could not parse date `{}T{}`", log_date, join_date))?;

Expand Down

0 comments on commit 1d55b85

Please sign in to comment.