mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36: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:
@@ -75,7 +75,7 @@ impl StatusUpdateId {
|
||||
|
||||
impl rusqlite::types::ToSql for StatusUpdateId {
|
||||
fn to_sql(&self) -> rusqlite::Result<rusqlite::types::ToSqlOutput> {
|
||||
let val = rusqlite::types::Value::Integer(self.0 as i64);
|
||||
let val = rusqlite::types::Value::Integer(i64::from(self.0));
|
||||
let out = rusqlite::types::ToSqlOutput::Owned(val);
|
||||
Ok(out)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user