Skip to content

Commit

Permalink
Fix clippy errors, update MSRV to 1.62.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jbangelo committed May 26, 2024
1 parent bb5f69d commit 9b50170
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
# MSRV
- os: ubuntu-latest
binary_target: x86_64-unknown-linux-gnu
toolchain: 1.56.1
toolchain: 1.62.1
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion swiftnav-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "FFI bindings for libswiftnav"
readme = "README.md"
repository = "https://github.com/swift-nav/swiftnav-rs"
license = "LGPL-3.0"
rust-version = "1.56.1"
rust-version = "1.62.1"

[build-dependencies]
bindgen = "0.66"
Expand Down
2 changes: 1 addition & 1 deletion swiftnav/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "GNSS positioning and related utilities"
readme = "README.md"
repository = "https://github.com/swift-nav/swiftnav-rs"
license = "LGPL-3.0"
rust-version = "1.56.1"
rust-version = "1.62.1"

[dependencies]
rustversion = "1.0"
Expand Down
4 changes: 2 additions & 2 deletions swiftnav/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ impl From<UtcTime> for chrono::DateTime<chrono::offset::Utc> {
)
.unwrap();

DateTime::<Utc>::from_utc(NaiveDateTime::new(date, time), Utc)
DateTime::from_naive_utc_and_offset(NaiveDateTime::new(date, time), Utc)
}
}

Expand Down Expand Up @@ -1611,7 +1611,7 @@ mod tests {
use chrono::prelude::*;
let epsilon = std::time::Duration::from_secs_f64(1e-6);
let swift_date = UtcTime::from_date(2021, 8, 1, 00, 11, 0.0);
let expected_utc = DateTime::<Utc>::from_utc(
let expected_utc = DateTime::from_naive_utc_and_offset(
NaiveDateTime::new(
NaiveDate::from_ymd_opt(2021, 8, 1).unwrap(),
NaiveTime::from_hms_nano_opt(00, 11, 0, 0).unwrap(),
Expand Down

0 comments on commit 9b50170

Please sign in to comment.