Skip to content

Commit b808f00

Browse files
committed
Fix unused warnings
1 parent 5189715 commit b808f00

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

core/src/sql/arrow_sql_gen/statement.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ pub struct InsertBuilder {
183183
}
184184

185185
pub fn use_json_insert_for_type<T: QueryBuilder + 'static>(
186-
data_type: &DataType,
187-
query_builder: &T,
186+
#[allow(unused_variables)] data_type: &DataType,
187+
#[allow(unused_variables)] query_builder: &T,
188188
) -> bool {
189189
#[cfg(feature = "sqlite")]
190190
{

core/src/sql/sql_provider_datafusion/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ impl<T, P> SqlTable<T, P> {
156156
)?))
157157
}
158158

159+
#[cfg(feature = "federation")]
159160
// Return the current memory location of the object as a unique identifier
160161
fn unique_id(&self) -> usize {
161162
std::ptr::from_ref(self) as usize
@@ -186,6 +187,7 @@ impl<T, P> SqlTable<T, P> {
186187
}
187188
}
188189

190+
#[cfg(feature = "federation")]
189191
fn arc_dialect(&self) -> Arc<dyn Dialect + Send + Sync> {
190192
match &self.dialect {
191193
Some(dialect) => Arc::clone(dialect),

0 commit comments

Comments
 (0)