Skip to content

Commit c28ccaf

Browse files
authored
chore: update clippy after rust update (1.83.0) (#1143)
1 parent 81cfa63 commit c28ccaf

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

ballista/client/tests/context_unsupported.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ mod common;
2121
///
2222
/// It provides indication if/when datafusion
2323
/// gets support for them
24-
2524
#[cfg(test)]
2625
mod unsupported {
2726
use crate::common::{remote_context, standalone_context};

ballista/core/src/extension.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ pub trait SessionStateExt {
5252

5353
/// [SessionConfig] extension with methods needed
5454
/// for Ballista configuration
55-
5655
pub trait SessionConfigExt {
5756
/// Creates session config which has
5857
/// ballista configuration initialized
@@ -315,7 +314,8 @@ impl SessionConfigHelperExt for SessionConfig {
315314
value
316315
);
317316
if let Err(e) = s.options_mut().set(key, value) {
318-
log::warn!(
317+
// there is not much we can do about this error at the moment
318+
log::debug!(
319319
"could not set configuration key: `{}`, value: `{}`, reason: {}",
320320
key,
321321
value,
@@ -334,7 +334,8 @@ impl SessionConfigHelperExt for SessionConfig {
334334
value
335335
);
336336
if let Err(e) = self.options_mut().set(key, value) {
337-
log::warn!(
337+
// there is not much we can do about this error at the moment
338+
log::debug!(
338339
"could not set configuration key: `{}`, value: `{}`, reason: {}",
339340
key,
340341
value,

ballista/core/src/serde/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ impl BallistaLogicalExtensionCodec {
131131
/// position is important with encoding process
132132
/// as position of used codecs is needed
133133
/// so the same codec can be used for decoding
134-
135134
fn try_any<R>(
136135
&self,
137136
mut f: impl FnMut(&dyn LogicalExtensionCodec) -> Result<R>,

ballista/executor/src/execution_engine.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use std::fmt::Debug;
2727
use std::sync::Arc;
2828

2929
/// Execution engine extension point
30-
3130
pub trait ExecutionEngine: Sync + Send {
3231
fn create_query_stage_exec(
3332
&self,

ballista/executor/src/executor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ impl Executor {
111111

112112
/// Create a new executor instance with given [RuntimeEnv],
113113
/// [ScalarUDF], [AggregateUDF] and [WindowUDF]
114-
115114
#[allow(clippy::too_many_arguments)]
116115
pub fn new(
117116
metadata: ExecutorRegistration,

ballista/scheduler/src/display.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl<'a> DisplayableBallistaExecutionPlan<'a> {
8787
plan: &'a dyn ExecutionPlan,
8888
metrics: &'a Vec<MetricsSet>,
8989
}
90-
impl<'a> fmt::Display for Wrapper<'a> {
90+
impl fmt::Display for Wrapper<'_> {
9191
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
9292
let t = DisplayFormatType::Default;
9393
let mut visitor = IndentVisitor {
@@ -121,7 +121,7 @@ struct IndentVisitor<'a, 'b> {
121121
metric_index: usize,
122122
}
123123

124-
impl<'a, 'b> ExecutionPlanVisitor for IndentVisitor<'a, 'b> {
124+
impl ExecutionPlanVisitor for IndentVisitor<'_, '_> {
125125
type Error = fmt::Error;
126126
fn pre_visit(
127127
&mut self,
@@ -150,7 +150,7 @@ impl<'a, 'b> ExecutionPlanVisitor for IndentVisitor<'a, 'b> {
150150
}
151151
}
152152

153-
impl<'a> ToStringifiedPlan for DisplayableBallistaExecutionPlan<'a> {
153+
impl ToStringifiedPlan for DisplayableBallistaExecutionPlan<'_> {
154154
fn to_stringified(
155155
&self,
156156
plan_type: datafusion::logical_expr::PlanType,

0 commit comments

Comments
 (0)