mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2026-02-08 03:54:41 -05:00
resolve half of the integer_arithmetic lints, couple misc changes
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
2d0f8aad81
commit
b1ccbe0fbd
34 changed files with 188 additions and 109 deletions
|
|
@ -19,7 +19,7 @@ impl service::rooms::threads::Data for KeyValueDatabase {
|
|||
.to_vec();
|
||||
|
||||
let mut current = prefix.clone();
|
||||
current.extend_from_slice(&(until - 1).to_be_bytes());
|
||||
current.extend_from_slice(&(until.saturating_sub(1)).to_be_bytes());
|
||||
|
||||
Ok(Box::new(
|
||||
self.threadid_userids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue