diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3e06ad3209..b0917746ce 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,6 +25,9 @@ jobs: - run: | cargo clippy ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --all-targets --color=always \ -- -D warnings + - run: | + cargo clippy --target=x86_64-pc-windows-msvc --all-targets --color=always \ + -- -D warnings - run: | cargo clippy --manifest-path fuzz/Cargo.toml --color=always \ -- -D warnings diff --git a/src/offset/local/windows.rs b/src/offset/local/windows.rs index cee09eca8b..de48f0653c 100644 --- a/src/offset/local/windows.rs +++ b/src/offset/local/windows.rs @@ -103,7 +103,7 @@ pub(super) fn offset_from_local_datetime(local: &NaiveDateTime) -> LocalResult return LocalResult::Single(tz_info.std_offset), + (None, None) => LocalResult::Single(tz_info.std_offset), } } @@ -184,7 +184,7 @@ mod tests { use crate::offset::local::win_bindings::{ SystemTimeToFileTime, TzSpecificLocalTimeToSystemTime, FILETIME, SYSTEMTIME, }; - use crate::{DateTime, Duration, FixedOffset, Local, NaiveDate, NaiveDateTime}; + use crate::{DateTime, FixedOffset, Local, NaiveDate, NaiveDateTime, TimeDelta}; use crate::{Datelike, TimeZone, Timelike}; use std::mem::MaybeUninit; use std::ptr; @@ -256,7 +256,7 @@ mod tests { if let Some(our_result) = Local.from_local_datetime(&date).earliest() { assert_eq!(from_local_time(&date), our_result); } - date += Duration::hours(1); + date += TimeDelta::hours(1); } } }