You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Bump clippy checks to 1.73.0
This commit is contained in:
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -195,8 +195,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: |
|
run: |
|
||||||
rustup toolchain install 1.71.0
|
rustup toolchain install 1.73.0
|
||||||
rustup default 1.71.0
|
rustup default 1.73.0
|
||||||
rustup component add clippy
|
rustup component add clippy
|
||||||
|
|
||||||
- name: Setup OPA
|
- name: Setup OPA
|
||||||
|
@ -154,7 +154,7 @@ impl ActivityTracker {
|
|||||||
let res = self.channel.send(Message::Flush(tx)).await;
|
let res = self.channel.send(Message::Flush(tx)).await;
|
||||||
|
|
||||||
match res {
|
match res {
|
||||||
Ok(_) => {
|
Ok(()) => {
|
||||||
if let Err(e) = rx.await {
|
if let Err(e) = rx.await {
|
||||||
tracing::error!("Failed to flush activity tracker: {}", e);
|
tracing::error!("Failed to flush activity tracker: {}", e);
|
||||||
}
|
}
|
||||||
@ -172,12 +172,12 @@ impl ActivityTracker {
|
|||||||
biased;
|
biased;
|
||||||
|
|
||||||
// First check if the channel is closed, then check if the timer expired
|
// First check if the channel is closed, then check if the timer expired
|
||||||
_ = self.channel.closed() => {
|
() = self.channel.closed() => {
|
||||||
// The channel was closed, so we should exit
|
// The channel was closed, so we should exit
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = tokio::time::sleep(interval) => {
|
() = tokio::time::sleep(interval) => {
|
||||||
self.flush().await;
|
self.flush().await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -192,7 +192,7 @@ impl ActivityTracker {
|
|||||||
let res = self.channel.send(Message::Shutdown(tx)).await;
|
let res = self.channel.send(Message::Shutdown(tx)).await;
|
||||||
|
|
||||||
match res {
|
match res {
|
||||||
Ok(_) => {
|
Ok(()) => {
|
||||||
if let Err(e) = rx.await {
|
if let Err(e) = rx.await {
|
||||||
tracing::error!("Failed to shutdown activity tracker: {}", e);
|
tracing::error!("Failed to shutdown activity tracker: {}", e);
|
||||||
}
|
}
|
||||||
|
@ -185,7 +185,7 @@ impl Worker {
|
|||||||
let duration_ms = duration.as_millis().try_into().unwrap_or(u64::MAX);
|
let duration_ms = duration.as_millis().try_into().unwrap_or(u64::MAX);
|
||||||
|
|
||||||
match res {
|
match res {
|
||||||
Ok(_) => {
|
Ok(()) => {
|
||||||
self.flush_time_histogram
|
self.flush_time_histogram
|
||||||
.record(duration_ms, &[RESULT.string("success")]);
|
.record(duration_ms, &[RESULT.string("success")]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user