Add missing cfg(test) attribute to sqlite RowsAffected

This commit is contained in:
Max Brunsfeld 2022-11-10 15:04:57 -08:00
parent 5d17347a45
commit c839ab2028
2 changed files with 5 additions and 1 deletions

View file

@ -45,7 +45,10 @@ jobs:
- name: Run tests - name: Run tests
run: cargo test --workspace --no-fail-fast 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 run: cargo build --bins --all-features
bundle: bundle:

View file

@ -53,6 +53,7 @@ pub trait RowsAffected {
fn rows_affected(&self) -> u64; fn rows_affected(&self) -> u64;
} }
#[cfg(test)]
impl RowsAffected for sqlx::sqlite::SqliteQueryResult { impl RowsAffected for sqlx::sqlite::SqliteQueryResult {
fn rows_affected(&self) -> u64 { fn rows_affected(&self) -> u64 {
self.rows_affected() self.rows_affected()