Skip to content

Commit a2b7276

Browse files
Merge pull request #399 from matthiasbeyer/release-0.13.x-update-rustc
Update MSRV: 1.56.0 -> 1.59.0
2 parents 46e6afc + 8a7349e commit a2b7276

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/msrv.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
rust:
12-
- 1.56.0
12+
- 1.59.0
1313
- stable
1414
- beta
1515
- nightly
@@ -45,7 +45,7 @@ jobs:
4545
strategy:
4646
matrix:
4747
rust:
48-
- 1.56.0
48+
- 1.59.0
4949
- stable
5050
- beta
5151
- nightly
@@ -61,14 +61,14 @@ jobs:
6161
override: true
6262

6363
- name: Run cargo test
64-
if: matrix.rust != 'nightly' && matrix.rust != '1.56.0'
64+
if: matrix.rust != 'nightly' && matrix.rust != '1.59.0'
6565
uses: actions-rs/cargo@v1
6666
with:
6767
command: test
6868
args: --all-features
6969

7070
- name: Run cargo test (nightly)
71-
if: matrix.rust == '1.56.0'
71+
if: matrix.rust == '1.59.0'
7272
continue-on-error: true
7373
uses: actions-rs/cargo@v1
7474
with:
@@ -121,7 +121,7 @@ jobs:
121121
- name: Install toolchain
122122
uses: actions-rs/toolchain@v1
123123
with:
124-
toolchain: 1.56.1
124+
toolchain: 1.59.0
125125
override: true
126126
components: clippy
127127

@@ -138,7 +138,7 @@ jobs:
138138
strategy:
139139
matrix:
140140
rust:
141-
- 1.56.0
141+
- 1.59.0
142142
- stable
143143

144144
steps:

tests/datetime.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,25 @@ fn test_datetime() {
8686
// JSON
8787
let date: DateTime<Utc> = s.get("json_datetime").unwrap();
8888

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

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)