From cd737ea0581cbc3a0f75eb765efe2079002c05ed Mon Sep 17 00:00:00 2001
From: Patryk Osmaczko <33099791+osmaczko@users.noreply.github.com>
Date: Tue, 10 Feb 2026 18:34:33 +0100
Subject: [PATCH] fix: make ci checks pass
---
.github/workflows/ci.yml | 10 +++-------
conversations/src/context.rs | 20 +++++++------------
conversations/src/conversation.rs | 7 +++++--
conversations/src/conversation/group_test.rs | 2 +-
conversations/src/conversation/privatev1.rs | 2 +-
conversations/src/inbox.rs | 4 ++--
.../src/inbox/{inbox.rs => handler.rs} | 11 +++++-----
conversations/src/inbox/handshake.rs | 6 +++---
conversations/src/inbox/introduction.rs | 8 ++++----
conversations/src/lib.rs | 1 -
conversations/src/types.rs | 2 +-
crypto/src/x3dh.rs | 14 ++++++-------
.../examples/double_ratchet_basic.rs | 2 +-
double-ratchets/examples/out_of_order_demo.rs | 2 +-
.../examples/serialization_demo.rs | 2 +-
double-ratchets/examples/storage_demo.rs | 2 +-
double-ratchets/src/reader.rs | 6 +++---
double-ratchets/src/state.rs | 8 ++++----
double-ratchets/src/storage/db.rs | 2 +-
double-ratchets/src/storage/session.rs | 20 +++++++++----------
storage/src/sqlite.rs | 5 +----
21 files changed, 62 insertions(+), 74 deletions(-)
rename conversations/src/inbox/{inbox.rs => handler.rs} (96%)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 164bf17..53bf752 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -13,13 +13,9 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
- strategy:
- matrix:
- toolchain:
- - stable
steps:
- uses: actions/checkout@v4
- - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
+ - run: rustup update stable && rustup default stable
- run: cargo build --verbose
- run: cargo test --verbose
@@ -28,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
+ - run: rustup update stable && rustup default stable
- run: rustup component add clippy
- run: cargo clippy --all-targets --all-features -- -D warnings
@@ -37,6 +33,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
+ - run: rustup update stable && rustup default stable
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
diff --git a/conversations/src/context.rs b/conversations/src/context.rs
index 49db263..6445ef6 100644
--- a/conversations/src/context.rs
+++ b/conversations/src/context.rs
@@ -44,7 +44,7 @@ impl Context {
let remote_id = Inbox::inbox_identifier_for_key(remote_bundle.installation_key);
let payload_bytes = payloads
.into_iter()
- .map(|p| p.to_envelope(remote_id.clone()))
+ .map(|p| p.into_envelope(remote_id.clone()))
.collect();
let convo_id = self.add_convo(Box::new(convo));
@@ -65,16 +65,13 @@ impl Context {
// Attach conversation_ids to Envelopes
Ok(payloads
.into_iter()
- .map(|p| p.to_envelope(convo.remote_id()))
+ .map(|p| p.into_envelope(convo.remote_id()))
.collect())
}
// Decode bytes and send to protocol for processing.
pub fn handle_payload(&mut self, payload: &[u8]) -> Result