Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add missing cfg(test) attribute to sqlite RowsAffected
Max Brunsfeldc839ab202833
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 1dff0c84e92..13dcf4fef1d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -45,7 +45,10 @@ jobs:- name: Run testsrun: cargo test --workspace --no-fail-fast- - name: Build collab binaries+ - name: Build collab+ run: cargo build -p collab++ - name: Build other binariesrun: cargo build --bins --all-featuresbundle:diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rsindex 239a16cfeed..10da609d57b 100644--- a/crates/collab/src/db.rs+++ b/crates/collab/src/db.rs@@ -53,6 +53,7 @@ pub trait RowsAffected {fn rows_affected(&self) -> u64;}+#[cfg(test)]impl RowsAffected for sqlx::sqlite::SqliteQueryResult {fn rows_affected(&self) -> u64 {self.rows_affected()