Fix cfg-specific unused lints

This commit is contained in:
Jonas Platte 2020-10-28 15:02:45 +01:00 committed by Austin Bonander
parent abdd29f145
commit 85b5ab0fb3
2 changed files with 2 additions and 1 deletions

View File

@ -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
}

View File

@ -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,