Skip to content

Commit 8194752

Browse files
authored
chore: Bump Rust toolchain to 1.91.1 (#767)
1 parent 4bfd68d commit 8194752

13 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/actions/prepare/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
using: composite
1515
steps:
1616
- name: setup rust tool chain
17-
uses: dtolnay/rust-toolchain@1.88.0 # v1.88.0
17+
uses: dtolnay/rust-toolchain@1.91.1 # v1.91.1
1818
with:
1919
components: ${{ (inputs.components != '') && format('{0}, rustfmt, clippy', inputs.components) || 'rustfmt, clippy' }}
2020
- name: Install libsodium

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "openzeppelin-relayer"
33
version = "1.4.0"
44
edition = "2021"
5-
rust-version = "1.88" #MSRV
5+
rust-version = "1.91" #MSRV
66

77
[features]
88
default = []

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "1.88.0"
2+
channel = "1.91.1"
33
profile = "minimal"
44
components = [
55
"rustc",

src/jobs/handlers/transaction_cleanup_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ async fn process_status_cleanup(
329329
};
330330

331331
let page_result = transaction_repo
332-
.find_by_status_paginated(relayer_id, &[status.clone()], query, true)
332+
.find_by_status_paginated(relayer_id, std::slice::from_ref(status), query, true)
333333
.await
334334
.map_err(|e| {
335335
eyre::eyre!(

src/queues/sqs/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ fn poll_error_backoff_secs(consecutive_errors: u32) -> u64 {
903903

904904
// Once well past the ceiling, periodically try the base interval
905905
// to quickly detect when the SQS endpoint recovers.
906-
if consecutive_errors >= 7 && consecutive_errors % RECOVERY_PROBE_EVERY == 0 {
906+
if consecutive_errors >= 7 && consecutive_errors.is_multiple_of(RECOVERY_PROBE_EVERY) {
907907
return base;
908908
}
909909

src/repositories/api_key/api_key_in_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl InMemoryApiKeyRepository {
3939
}
4040
}
4141

42-
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
42+
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
4343
Ok(lock.lock().await)
4444
}
4545
}

src/repositories/network/network_in_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl InMemoryNetworkRepository {
4040
}
4141
}
4242

43-
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
43+
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
4444
Ok(lock.lock().await)
4545
}
4646

src/repositories/notification/notification_in_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl InMemoryNotificationRepository {
3939
}
4040
}
4141

42-
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
42+
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
4343
Ok(lock.lock().await)
4444
}
4545
}

src/repositories/plugin/plugin_in_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl InMemoryPluginRepository {
6060
Ok(store.get(id).cloned())
6161
}
6262

63-
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
63+
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
6464
Ok(lock.lock().await)
6565
}
6666
}

src/repositories/relayer/relayer_in_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl InMemoryRelayerRepository {
3030
store: Mutex::new(HashMap::new()),
3131
}
3232
}
33-
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
33+
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
3434
Ok(lock.lock().await)
3535
}
3636
}

0 commit comments

Comments
 (0)