mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
Fix cfg-specific unused lints
This commit is contained in:
parent
abdd29f145
commit
85b5ab0fb3
@ -65,6 +65,7 @@ impl<T> StatementCache<T> {
|
||||
}
|
||||
|
||||
/// Returns true if the cache capacity is more than 0.
|
||||
#[allow(dead_code)] // Only used for some `cfg`s
|
||||
pub fn is_enabled(&self) -> bool {
|
||||
self.capacity() > 0
|
||||
}
|
||||
|
||||
@ -187,7 +187,7 @@ impl<DB: Database> DescribeExt for Describe<DB> {}
|
||||
fn expand_with_data<DB: DatabaseExt>(
|
||||
input: QueryMacroInput,
|
||||
data: QueryData<DB>,
|
||||
offline: bool,
|
||||
#[allow(unused_variables)] offline: bool,
|
||||
) -> crate::Result<TokenStream>
|
||||
where
|
||||
Describe<DB>: DescribeExt,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user