mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 02:46:43 +00:00
Add missing cfg(test) attribute to sqlite RowsAffected
This commit is contained in:
parent
5d17347a45
commit
c839ab2028
2 changed files with 5 additions and 1 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -45,7 +45,10 @@ jobs:
|
|||
- name: Run tests
|
||||
run: cargo test --workspace --no-fail-fast
|
||||
|
||||
- name: Build collab binaries
|
||||
- name: Build collab
|
||||
run: cargo build -p collab
|
||||
|
||||
- name: Build other binaries
|
||||
run: cargo build --bins --all-features
|
||||
|
||||
bundle:
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue