Skip to content

Commit

Permalink
Prevent warnings running cargo build
Browse files Browse the repository at this point in the history
When none of the features is enabled (default features), prevent compiler warnings.
  • Loading branch information
nyurik committed Nov 5, 2023
1 parent cd39cb2 commit 515660f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sqlx-macros-core/src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ impl<DB: DatabaseExt> CachingDescribeBlocking<DB> {
}
}

#[cfg(any(feature = "postgres", feature = "mysql", feature = "sqlite"))]
macro_rules! impl_database_ext {
(
$database:path {
Expand Down Expand Up @@ -126,6 +127,7 @@ macro_rules! impl_database_ext {
}
}

#[cfg(any(feature = "postgres", feature = "mysql", feature = "sqlite"))]
macro_rules! impl_describe_blocking {
($database:path $(,)?) => {
fn describe_blocking(
Expand All @@ -150,6 +152,7 @@ macro_rules! impl_describe_blocking {
};
}

#[cfg(any(feature = "postgres", feature = "mysql", feature = "sqlite"))]
macro_rules! input_ty {
($ty:ty, $input:ty) => {
stringify!($input)
Expand Down

0 comments on commit 515660f

Please sign in to comment.