Skip to content

Commit

Permalink
remove reason because msrv is too low
Browse files Browse the repository at this point in the history
  • Loading branch information
boxdot committed Sep 30, 2024
1 parent f015dce commit bb5212a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 28 deletions.
30 changes: 6 additions & 24 deletions libsignal-service/examples/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ impl ExampleStore {
}

#[async_trait::async_trait(?Send)]
#[allow(
clippy::diverging_sub_expression,
reason = "combination of async_trait and todo"
)]
#[allow(clippy::diverging_sub_expression)]
impl PreKeyStore for ExampleStore {
/// Look up the pre-key corresponding to `prekey_id`.
async fn get_pre_key(
Expand Down Expand Up @@ -48,10 +45,7 @@ impl PreKeyStore for ExampleStore {
}

#[async_trait::async_trait(?Send)]
#[allow(
clippy::diverging_sub_expression,
reason = "combination of async_trait and todo"
)]
#[allow(clippy::diverging_sub_expression)]
impl KyberPreKeyStore for ExampleStore {
/// Look up the signed kyber pre-key corresponding to `kyber_prekey_id`.
async fn get_kyber_pre_key(
Expand Down Expand Up @@ -81,10 +75,7 @@ impl KyberPreKeyStore for ExampleStore {
}

#[async_trait::async_trait(?Send)]
#[allow(
clippy::diverging_sub_expression,
reason = "combination of async_trait and todo"
)]
#[allow(clippy::diverging_sub_expression)]
impl SignedPreKeyStore for ExampleStore {
/// Look up the signed pre-key corresponding to `signed_prekey_id`.
async fn get_signed_pre_key(
Expand All @@ -105,10 +96,7 @@ impl SignedPreKeyStore for ExampleStore {
}

#[async_trait::async_trait(?Send)]
#[allow(
clippy::diverging_sub_expression,
reason = "combination of async_trait and todo"
)]
#[allow(clippy::diverging_sub_expression)]
impl KyberPreKeyStoreExt for ExampleStore {
async fn store_last_resort_kyber_pre_key(
&mut self,
Expand Down Expand Up @@ -150,10 +138,7 @@ impl KyberPreKeyStoreExt for ExampleStore {
}

#[async_trait::async_trait(?Send)]
#[allow(
clippy::diverging_sub_expression,
reason = "combination of async_trait and todo"
)]
#[allow(clippy::diverging_sub_expression)]
impl IdentityKeyStore for ExampleStore {
/// Return the single specific identity the store is assumed to represent, with private key.
async fn get_identity_key_pair(
Expand Down Expand Up @@ -209,10 +194,7 @@ impl IdentityKeyStore for ExampleStore {
}

#[async_trait::async_trait(?Send)]
#[allow(
clippy::diverging_sub_expression,
reason = "combination of async_trait and todo"
)]
#[allow(clippy::diverging_sub_expression)]
impl PreKeysStore for ExampleStore {
/// ID of the next pre key
async fn next_pre_key_id(&self) -> Result<u32, SignalProtocolError> {
Expand Down
5 changes: 1 addition & 4 deletions libsignal-service/src/messagepipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ impl MessagePipe {
/// WebSocketService that panics on every request, mainly for example code.
pub struct PanicingWebSocketService;

#[allow(
clippy::diverging_sub_expression,
reason = "combination of async_trait and todo"
)]
#[allow(clippy::diverging_sub_expression)]
#[cfg_attr(feature = "unsend-futures", async_trait::async_trait(?Send))]
#[cfg_attr(not(feature = "unsend-futures"), async_trait::async_trait)]
impl WebSocketService for PanicingWebSocketService {
Expand Down

0 comments on commit bb5212a

Please sign in to comment.