You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[error("Incoming message is from an epoch too far in the future to buffer.")]
99
99
WrongEpoch,
100
-
#[error("Incoming message is a commit for which we have not yet received all the proposals. Buffering until all proposals have arrived.")]
100
+
#[error(
101
+
"Incoming message is a commit for which we have not yet received all the proposals. Buffering until all proposals have arrived."
102
+
)]
101
103
BufferedCommit,
102
104
#[error("The epoch in which message was encrypted is older than allowed")]
103
105
MessageEpochTooOld,
@@ -115,7 +117,9 @@ pub enum MlsError {
115
117
/// requests their old KeyPackages to be deleted but one has already been claimed by another client to create a Welcome.
116
118
/// In that case the only solution is that the client receiving such a Welcome tries to join the group
117
119
/// with an External Commit instead
118
-
#[error("Although this Welcome seems valid, the local KeyPackage it references has already been deleted locally. Join this group with an external commit")]
120
+
#[error(
121
+
"Although this Welcome seems valid, the local KeyPackage it references has already been deleted locally. Join this group with an external commit"
122
+
)]
119
123
OrphanWelcome,
120
124
/// Message rejected by the delivery service
121
125
#[error("Message rejected by the delivery service. Reason: {reason}")]
@@ -258,7 +262,7 @@ impl From<RecursiveError> for CoreCryptoError {
258
262
/// Hopefully only ever use this in conjunction with `interior_matches!`, because for most sane
259
263
/// circumstances, `if let` is the better design pattern.
Copy file name to clipboardExpand all lines: crypto-ffi/src/wasm/mod.rs
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -24,17 +24,17 @@ use std::{
24
24
};
25
25
26
26
usecrate::proteus_impl;
27
-
use core_crypto::{prelude::*,InnermostErrorMessage,MlsTransportResponse};
27
+
use core_crypto::{InnermostErrorMessage,MlsTransportResponse, prelude::*};
28
28
use futures_util::future::TryFutureExt;
29
29
use js_sys::{Promise,Uint8Array};
30
30
use log::{
31
-
kv::{self,Key,Value,VisitSource},
32
31
Level,LevelFilter,Metadata,Record,
32
+
kv::{self,Key,Value,VisitSource},
33
33
};
34
34
use log_reload::ReloadLog;
35
35
use tls_codec::Deserialize;
36
36
use utils::*;
37
-
use wasm_bindgen::{prelude::*,JsCast};
37
+
use wasm_bindgen::{JsCast,prelude::*};
38
38
use wasm_bindgen_futures::future_to_promise;
39
39
40
40
#[allow(dead_code)]
@@ -90,7 +90,9 @@ pub enum MlsError {
90
90
BufferedFutureMessage,
91
91
#[error("Incoming message is from an epoch too far in the future to buffer.")]
92
92
WrongEpoch,
93
-
#[error("Incoming message is a commit for which we have not yet received all the proposals. Buffering until all proposals have arrived.")]
93
+
#[error(
94
+
"Incoming message is a commit for which we have not yet received all the proposals. Buffering until all proposals have arrived."
95
+
)]
94
96
BufferedCommit,
95
97
#[error("The epoch in which message was encrypted is older than allowed")]
96
98
MessageEpochTooOld,
@@ -108,7 +110,9 @@ pub enum MlsError {
108
110
/// requests their old KeyPackages to be deleted but one has already been claimed by another client to create a Welcome.
109
111
/// In that case the only solution is that the client receiving such a Welcome tries to join the group
110
112
/// with an External Commit instead
111
-
#[error("Although this Welcome seems valid, the local KeyPackage it references has already been deleted locally. Join this group with an external commit")]
113
+
#[error(
114
+
"Although this Welcome seems valid, the local KeyPackage it references has already been deleted locally. Join this group with an external commit"
115
+
)]
112
116
OrphanWelcome,
113
117
/// Message rejected by the delivery service
114
118
#[error("Message rejected by the delivery service. Reason: {reason}")]
0 commit comments