Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/internal/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ impl<I: Borrow<IdentityKeyPair>> Session<I> {
#[allow(clippy::type_complexity)]
pub async fn init_from_message<S: proteus_traits::PreKeyStore>(
ours: I,
store: &mut S,
store: &S,
env: &Envelope<'_>,
) -> SessionResult<(Session<I>, Vec<u8>), S::Error> {
let Message::Keyed(pkmsg) = env.message() else {
Expand Down Expand Up @@ -533,7 +533,7 @@ impl<I: Borrow<IdentityKeyPair>> Session<I> {

pub async fn decrypt<S: PreKeyStore>(
&mut self,
store: &mut S,
store: &S,
env: &Envelope<'_>,
) -> SessionResult<Vec<u8>, S::Error> {
match *env.message() {
Expand Down Expand Up @@ -588,7 +588,7 @@ impl<I: Borrow<IdentityKeyPair>> Session<I> {
// See note [no_new_state] for those cases where no prekey has been found.
async fn new_state<S: proteus_traits::PreKeyStore>(
&self,
store: &mut S,
store: &S,
m: &PreKeyMessage<'_>,
) -> SessionResult<Option<SessionState>, S::Error> {
let prekey_raw = store
Expand Down
Loading