Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Bump MSRV to 1.52.0 and fix cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Oct 25, 2021
1 parent 2f71810 commit 831c451
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable, 1.36.0]
rust: [stable, 1.52.0]

steps:
- uses: actions/checkout@master
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ All of these are enabled by default.
MSRV
----

Our current Minimum Supported Rust Version is **1.36.0**. When adding features,
Our current Minimum Supported Rust Version is **1.52.0**. When adding features,
we will follow these guidelines:

- We will always support the latest four minor Rust versions. This gives you a 6
Expand Down
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl DateTime {
/// Converts the DateTime to a OffsetDateTime structure
pub fn to_time(&self) -> Result<OffsetDateTime, ComponentRange> {
use std::convert::TryFrom;

let date =
Date::from_calendar_date(self.year as i32, Month::try_from(self.month)?, self.day)?;
let time = Time::from_hms(self.hour, self.minute, self.second)?;
Expand Down

0 comments on commit 831c451

Please sign in to comment.