diff --git a/rust/cubesql/cubesql/Cargo.toml b/rust/cubesql/cubesql/Cargo.toml index dbf2c1e657af7..e6372fc4731b6 100644 --- a/rust/cubesql/cubesql/Cargo.toml +++ b/rust/cubesql/cubesql/Cargo.toml @@ -137,7 +137,6 @@ redundant_pattern_matching = "allow" result_large_err = "allow" single_match = "allow" should_implement_trait = "allow" -to_string_in_format_args = "allow" to_string_trait_impl = "allow" too_many_arguments = "allow" type_complexity = "allow" diff --git a/rust/cubesql/cubesql/src/compile/engine/udf/common.rs b/rust/cubesql/cubesql/src/compile/engine/udf/common.rs index f1432a8ade6f5..97a4bd31c4129 100644 --- a/rust/cubesql/cubesql/src/compile/engine/udf/common.rs +++ b/rust/cubesql/cubesql/src/compile/engine/udf/common.rs @@ -1564,10 +1564,7 @@ pub fn create_str_to_date_udf() -> ScalarUDF { let res = NaiveDateTime::parse_from_str(timestamp, &format).map_err(|e| { DataFusionError::Execution(format!( - "Error evaluating str_to_date('{}', '{}'): {}", - timestamp, - format, - e.to_string() + "Error evaluating str_to_date('{timestamp}', '{format}'): {e}" )) })?; diff --git a/rust/cubesql/cubesql/src/compile/rewrite/analysis.rs b/rust/cubesql/cubesql/src/compile/rewrite/analysis.rs index a5df8018f19e4..ff911a59518a7 100644 --- a/rust/cubesql/cubesql/src/compile/rewrite/analysis.rs +++ b/rust/cubesql/cubesql/src/compile/rewrite/analysis.rs @@ -551,7 +551,7 @@ impl LogicalPlanAnalysis { .unwrap(); let expr = original_expr(params[2])?; map.push(( - Some(format!("{}.{}", cube, field_name.to_string())), + Some(format!("{cube}.{field_name}")), Member::VirtualField { name: field_name.to_string(), cube: cube.to_string(), diff --git a/rust/cubesql/cubesql/src/compile/router.rs b/rust/cubesql/cubesql/src/compile/router.rs index d3ccd532314e7..b4d933a1fc1de 100644 --- a/rust/cubesql/cubesql/src/compile/router.rs +++ b/rust/cubesql/cubesql/src/compile/router.rs @@ -168,8 +168,7 @@ impl QueryRouter { DatabaseProtocol::PostgreSQL, ) if object_type == &ast::ObjectType::Table => self.drop_table_to_plan(names).await, _ => Err(CompilationError::unsupported(format!( - "Unsupported query type: {}", - stmt.to_string() + "Unsupported query type: {stmt}" ))), }; diff --git a/rust/cubesql/cubesql/src/sql/statement.rs b/rust/cubesql/cubesql/src/sql/statement.rs index 74ac31e4b16f2..9814a80fe6235 100644 --- a/rust/cubesql/cubesql/src/sql/statement.rs +++ b/rust/cubesql/cubesql/src/sql/statement.rs @@ -480,9 +480,7 @@ trait Visitor<'ast, E: Error> { ConnectionError::from(ErrorResponse::error( ErrorCode::SyntaxError, format!( - "Unable to extract position for placeholder, actual: {}, err: {}", - name, - err.to_string() + "Unable to extract position for placeholder, actual: {name}, err: {err}" ), )) })?;