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:
link2xt
2022-02-05 12:42:14 +00:00
parent 13a5e3cf6f
commit fb19b58147
10 changed files with 21 additions and 15 deletions

View File

@@ -1156,8 +1156,8 @@ INSERT INTO msgs
stmt.execute(paramsv![
rfc724_mid,
chat_id,
if trash { 0 } else { from_id as i32 },
if trash { 0 } else { to_id as i32 },
if trash { 0 } else { i64::from(from_id) },
if trash { 0 } else { i64::from(to_id) },
sort_timestamp,
sent_timestamp,
rcvd_timestamp,