File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
crates/matrix-sdk-crypto/src/backups/keys Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ pub enum MessageDecodeError {
176
176
Key ( #[ from] KeyError ) ,
177
177
}
178
178
179
+ #[ derive( Debug ) ]
179
180
pub struct Message {
180
181
pub ciphertext : Vec < u8 > ,
181
182
pub mac : Vec < u8 > ,
@@ -225,12 +226,12 @@ mod test {
225
226
}
226
227
}
227
228
228
- impl Into < PkMessage > for Message {
229
- fn into ( self ) -> PkMessage {
229
+ impl From < Message > for PkMessage {
230
+ fn from ( val : Message ) -> Self {
230
231
PkMessage {
231
- ciphertext : encode ( self . ciphertext ) ,
232
- mac : encode ( self . mac ) ,
233
- ephemeral_key : self . ephemeral_key . to_base64 ( ) ,
232
+ ciphertext : encode ( val . ciphertext ) ,
233
+ mac : encode ( val . mac ) ,
234
+ ephemeral_key : val . ephemeral_key . to_base64 ( ) ,
234
235
}
235
236
}
236
237
}
You can’t perform that action at this time.
0 commit comments