File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
crates/matrix-sdk-crypto/src Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -157,12 +157,15 @@ impl Session {
157157 }
158158
159159 impl EventType for Content < ' _ > {
160- // This is a bit of a hack, usually we just define the `EVENT_TYPE` and use the
161- // default implementation of `event_type()`, we can't do this here
160+ // This is a bit of a hack: usually we just define the `EVENT_TYPE` and use the
161+ // default implementation of `event_type()`. We can't do this here
162162 // because the event type isn't static.
163163 //
164- // So we just leave EVENT_TYPE out. This works because the serialization is
165- // using `event_type()` and this type is contained to this function.
164+ // We have to provide `EVENT_TYPE` to conform to the `EventType` trait, but
165+ // don't actually use it, so we just leave it empty.
166+ //
167+ // This works because the serialization uses `event_type()` and this type is
168+ // contained to this function.
166169 const EVENT_TYPE : & ' static str = "" ;
167170
168171 fn event_type ( & self ) -> & str {
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ impl AnyDecryptedOlmEvent {
163163
164164/// An `m.olm.v1.curve25519-aes-sha2` decrypted to-device event.
165165///
166- /// **Note**: This event will reserialize events lossy, unknown fields will be
166+ /// **Note**: This event will reserialize events lossily; unknown fields will be
167167/// lost during deserialization.
168168#[ derive( Clone , Debug , Deserialize ) ]
169169pub struct DecryptedOlmV1Event < C >
You can’t perform that action at this time.
0 commit comments