From 6be17eaa3166e5c3778c664b83ddfab8583de1ca Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 19 May 2023 12:54:54 -0300 Subject: [PATCH] fix sql --- .github/workflows/test-rust.yml | 4 ++-- plugins/sql/src/lib.rs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.yml index 2aaedace..2480ad19 100644 --- a/.github/workflows/test-rust.yml +++ b/.github/workflows/test-rust.yml @@ -209,7 +209,7 @@ jobs: with: use-cross: ${{ matrix.platform.cross }} command: ${{ matrix.platform.command }} - args: --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets --all-features --features mysql + args: --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets --features mysql - name: test ${{ matrix.package }} postgres if: matrix.package == 'tauri-plugin-sql' @@ -217,4 +217,4 @@ jobs: with: use-cross: ${{ matrix.platform.cross }} command: ${{ matrix.platform.command }} - args: --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets --all-features --features postgres + args: --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets --features postgres diff --git a/plugins/sql/src/lib.rs b/plugins/sql/src/lib.rs index 378240b3..20153109 100644 --- a/plugins/sql/src/lib.rs +++ b/plugins/sql/src/lib.rs @@ -7,7 +7,9 @@ all(feature = "sqlite", feature = "postgres"), all(feature = "mysql", feature = "postgres") ))] -compile_error!("Only one database driver can be enabled. Use `default-features = false` and set the feature flag for the driver of your choice."); +compile_error!( + "Only one database driver can be enabled. Set the feature flag for the driver of your choice." +); #[cfg(not(any(feature = "sqlite", feature = "mysql", feature = "postgres")))] compile_error!(