Skip to content

Commit a01e834

Browse files
committed
Fix format
1 parent 5787e98 commit a01e834

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/shim.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,8 @@ unsafe fn localtime_js(t: c_time_t, tm: *mut tm) {
112112
let summer_offset =
113113
Date::new_with_year_month_day(date.get_full_year(), 6, 1).get_timezone_offset();
114114
let winter_offset = start.get_timezone_offset();
115-
(*tm).tm_isdst = i32::from(
116-
summer_offset != winter_offset
117-
&& tz_offset == winter_offset.min(summer_offset),
118-
);
115+
(*tm).tm_isdst =
116+
i32::from(summer_offset != winter_offset && tz_offset == winter_offset.min(summer_offset));
119117

120118
(*tm).tm_gmtoff = -(tz_offset * 60.0) as _;
121119
}

0 commit comments

Comments
 (0)