cargo fix

This commit is contained in:
Timo Kösters 2022-10-05 20:41:05 +02:00 committed by Nyaaori
parent a4637e2ba1
commit f47a5cd5d5
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E
21 changed files with 51 additions and 79 deletions

View file

@ -13,7 +13,7 @@ use crate::{
};
use federation::transactions::send_transaction_message;
use futures_util::{stream::FuturesUnordered, StreamExt};
use ring::digest;
use ruma::{
api::{
appservice,
@ -33,7 +33,7 @@ use ruma::{
};
use tokio::{
select,
sync::{mpsc, RwLock, Semaphore},
sync::{mpsc, Semaphore},
};
use tracing::{error, warn};
@ -297,7 +297,7 @@ impl Service {
.sending
.servername_educount
.get(server.as_bytes())?
.map_or(Ok(0), |bytes| {
.map_or(Ok(0), |&bytes| {
utils::u64_from_bytes(&bytes)
.map_err(|_| Error::bad_database("Invalid u64 in servername_educount."))
})?;