Skip to content

Commit

Permalink
Merge pull request #399 from matthiasbeyer/release-0.13.x-update-rustc
Browse files Browse the repository at this point in the history
Update MSRV: 1.56.0 -> 1.59.0
  • Loading branch information
matthiasbeyer authored Dec 4, 2022
2 parents 46e6afc + 8a7349e commit a2b7276
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
rust:
- 1.56.0
- 1.59.0
- stable
- beta
- nightly
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
strategy:
matrix:
rust:
- 1.56.0
- 1.59.0
- stable
- beta
- nightly
Expand All @@ -61,14 +61,14 @@ jobs:
override: true

- name: Run cargo test
if: matrix.rust != 'nightly' && matrix.rust != '1.56.0'
if: matrix.rust != 'nightly' && matrix.rust != '1.59.0'
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features

- name: Run cargo test (nightly)
if: matrix.rust == '1.56.0'
if: matrix.rust == '1.59.0'
continue-on-error: true
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.1
toolchain: 1.59.0
override: true
components: clippy

Expand All @@ -138,7 +138,7 @@ jobs:
strategy:
matrix:
rust:
- 1.56.0
- 1.59.0
- stable

steps:
Expand Down
10 changes: 5 additions & 5 deletions tests/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,25 @@ fn test_datetime() {
// JSON
let date: DateTime<Utc> = s.get("json_datetime").unwrap();

assert_eq!(date, Utc.ymd(2017, 5, 10).and_hms(2, 14, 53));
assert_eq!(date, Utc.with_ymd_and_hms(2017, 5, 10, 2, 14, 53).unwrap());

// TOML
let date: DateTime<Utc> = s.get("toml_datetime").unwrap();

assert_eq!(date, Utc.ymd(2017, 5, 11).and_hms(14, 55, 15));
assert_eq!(date, Utc.with_ymd_and_hms(2017, 5, 11, 14, 55, 15).unwrap());

// YAML
let date: DateTime<Utc> = s.get("yaml_datetime").unwrap();

assert_eq!(date, Utc.ymd(2017, 6, 12).and_hms(10, 58, 30));
assert_eq!(date, Utc.with_ymd_and_hms(2017, 6, 12, 10, 58, 30).unwrap());

// INI
let date: DateTime<Utc> = s.get("ini_datetime").unwrap();

assert_eq!(date, Utc.ymd(2017, 5, 10).and_hms(2, 14, 53));
assert_eq!(date, Utc.with_ymd_and_hms(2017, 5, 10, 2, 14, 53).unwrap());

// RON
let date: DateTime<Utc> = s.get("ron_datetime").unwrap();

assert_eq!(date, Utc.ymd(2021, 4, 19).and_hms(11, 33, 2));
assert_eq!(date, Utc.with_ymd_and_hms(2021, 4, 19, 11, 33, 2).unwrap());
}

0 comments on commit a2b7276

Please sign in to comment.