mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
Reduce number of unsafe as conversions
Enable clippy::cast_lossless lint and get rid of some conversions pointed out by clippy::as_conversions.
This commit is contained in:
@@ -71,7 +71,7 @@ pub(crate) fn dc_gm2local_offset() -> i64 {
|
||||
/* returns the offset that must be _added_ to an UTC/GMT-time to create the localtime.
|
||||
the function may return negative values. */
|
||||
let lt = Local::now();
|
||||
lt.offset().local_minus_utc() as i64
|
||||
i64::from(lt.offset().local_minus_utc())
|
||||
}
|
||||
|
||||
// timesmearing
|
||||
|
||||
Reference in New Issue
Block a user