diff --git a/src/api/ruma_wrapper/axum.rs b/src/api/ruma_wrapper/axum.rs index 8d179b48..1f329237 100644 --- a/src/api/ruma_wrapper/axum.rs +++ b/src/api/ruma_wrapper/axum.rs @@ -39,6 +39,7 @@ where { type Rejection = Error; + #[allow(unused_qualifications)] // async traits async fn from_request(req: Request, _state: &S) -> Result { let (mut parts, mut body) = match req.with_limited_body() { Ok(limited_req) => { diff --git a/src/database/key_value/globals.rs b/src/database/key_value/globals.rs index 02186a4e..be5796ed 100644 --- a/src/database/key_value/globals.rs +++ b/src/database/key_value/globals.rs @@ -40,6 +40,7 @@ impl service::globals::Data for KeyValueDatabase { Ok(()) } + #[allow(unused_qualifications)] // async traits async fn watch(&self, user_id: &UserId, device_id: &DeviceId) -> Result<()> { let userid_bytes = user_id.as_bytes().to_vec(); let mut userid_prefix = userid_bytes.clone(); diff --git a/src/database/key_value/rooms/state_accessor.rs b/src/database/key_value/rooms/state_accessor.rs index c9cf585c..24bf6247 100644 --- a/src/database/key_value/rooms/state_accessor.rs +++ b/src/database/key_value/rooms/state_accessor.rs @@ -7,6 +7,7 @@ use crate::{database::KeyValueDatabase, service, services, utils, Error, PduEven #[async_trait] impl service::rooms::state_accessor::Data for KeyValueDatabase { + #[allow(unused_qualifications)] // async traits async fn state_full_ids(&self, shortstatehash: u64) -> Result>> { let full_state = services() .rooms @@ -29,6 +30,7 @@ impl service::rooms::state_accessor::Data for KeyValueDatabase { Ok(result) } + #[allow(unused_qualifications)] // async traits async fn state_full(&self, shortstatehash: u64) -> Result>> { let full_state = services() .rooms @@ -110,6 +112,7 @@ impl service::rooms::state_accessor::Data for KeyValueDatabase { } /// Returns the full room state. + #[allow(unused_qualifications)] // async traits async fn room_state_full(&self, room_id: &RoomId) -> Result>> { if let Some(current_shortstatehash) = services().rooms.state.get_room_shortstatehash(room_id)? { self.state_full(current_shortstatehash).await diff --git a/src/service/globals/data.rs b/src/service/globals/data.rs index a829938e..afcd56a6 100644 --- a/src/service/globals/data.rs +++ b/src/service/globals/data.rs @@ -15,6 +15,7 @@ pub trait Data: Send + Sync { fn current_count(&self) -> Result; fn last_check_for_updates_id(&self) -> Result; fn update_check_for_updates_id(&self, id: u64) -> Result<()>; + #[allow(unused_qualifications)] // async traits async fn watch(&self, user_id: &UserId, device_id: &DeviceId) -> Result<()>; fn cleanup(&self) -> Result<()>; fn flush(&self) -> Result<()>; diff --git a/src/service/rooms/state_accessor/data.rs b/src/service/rooms/state_accessor/data.rs index 8e046df3..5fd58864 100644 --- a/src/service/rooms/state_accessor/data.rs +++ b/src/service/rooms/state_accessor/data.rs @@ -9,8 +9,10 @@ use crate::{PduEvent, Result}; pub trait Data: Send + Sync { /// Builds a StateMap by iterating over all keys that start /// with state_hash, this gives the full state for the given state_hash. + #[allow(unused_qualifications)] // async traits async fn state_full_ids(&self, shortstatehash: u64) -> Result>>; + #[allow(unused_qualifications)] // async traits async fn state_full(&self, shortstatehash: u64) -> Result>>; /// Returns a single PDU from `room_id` with key (`event_type`, @@ -29,6 +31,7 @@ pub trait Data: Send + Sync { fn pdu_shortstatehash(&self, event_id: &EventId) -> Result>; /// Returns the full room state. + #[allow(unused_qualifications)] // async traits async fn room_state_full(&self, room_id: &RoomId) -> Result>>; /// Returns a single PDU from `room_id` with key (`event_type`,