mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 04:09:23 +00:00
Tweak processor's slice handling due to a CI failure
The prior code worked without issue for me locally, but apparently it didn't always.
This commit is contained in:
@@ -85,7 +85,7 @@ impl<C: Coin, D: Db> ScannerDb<C, D> {
|
||||
// Don't add this key if it's already present
|
||||
let mut i = 0;
|
||||
while i < keys.len() {
|
||||
if keys[i .. (i + key_len)].as_ref() == key_bytes.as_ref() {
|
||||
if &keys[i .. (i + key_len)] == key_bytes.as_ref() {
|
||||
debug!("adding {} as an active key yet it was already present", hex::encode(key_bytes));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ impl<C: Coin, D: Db> SignerDb<C, D> {
|
||||
|
||||
let mut i = 0;
|
||||
while i < existing.len() {
|
||||
if existing[i .. (i + tx_len)].as_ref() == tx.as_ref() {
|
||||
if &existing[i .. (i + tx_len)] == tx.as_ref() {
|
||||
return;
|
||||
}
|
||||
i += tx_len;
|
||||
|
||||
Reference in New Issue
Block a user