mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-20 21:09:31 +08:00
clippy::unseparated_literal_suffix
This commit is contained in:
@@ -198,7 +198,7 @@ impl FromSql for i128 {
|
||||
#[inline]
|
||||
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> {
|
||||
let bytes = <[u8; 16]>::column_result(value)?;
|
||||
Ok(i128::from_be_bytes(bytes) ^ (1i128 << 127))
|
||||
Ok(i128::from_be_bytes(bytes) ^ (1_i128 << 127))
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -47,7 +47,7 @@ impl From<i128> for Value {
|
||||
fn from(i: i128) -> Value {
|
||||
// We store these biased (e.g. with the most significant bit flipped)
|
||||
// so that comparisons with negative numbers work properly.
|
||||
Value::Blob(i128::to_be_bytes(i ^ (1i128 << 127)).to_vec())
|
||||
Value::Blob(i128::to_be_bytes(i ^ (1_i128 << 127)).to_vec())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user