Upgrade rust toolchain to 1.84.1 (#5211)
* Upgrade rust toolchain to 1.84.1 * Fix lint warnings
This commit is contained in:
@ -1609,7 +1609,7 @@ pub struct FunctionParam<'a> {
|
||||
pub ctx: ExecutorContext,
|
||||
}
|
||||
|
||||
impl<'a> FunctionParam<'a> {
|
||||
impl FunctionParam<'_> {
|
||||
pub async fn call(&self, exec_state: &mut ExecState, args: Vec<Arg>) -> Result<Option<KclValue>, KclError> {
|
||||
if let Some(inner) = self.inner {
|
||||
inner(
|
||||
|
||||
@ -684,9 +684,9 @@ impl ExecutorContext {
|
||||
|
||||
/// Execute an AST's program and build auxiliary outputs like the artifact
|
||||
/// graph.
|
||||
async fn execute_and_build_graph<'a>(
|
||||
async fn execute_and_build_graph(
|
||||
&self,
|
||||
program: NodeRef<'a, crate::parsing::ast::types::Program>,
|
||||
program: NodeRef<'_, crate::parsing::ast::types::Program>,
|
||||
exec_state: &mut ExecState,
|
||||
) -> Result<Option<KclValue>, KclError> {
|
||||
// Don't early return! We need to build other outputs regardless of
|
||||
|
||||
@ -72,9 +72,9 @@ async fn inner_map<'a>(
|
||||
Ok(new_array)
|
||||
}
|
||||
|
||||
async fn call_map_closure<'a>(
|
||||
async fn call_map_closure(
|
||||
input: KclValue,
|
||||
map_fn: &FunctionParam<'a>,
|
||||
map_fn: &FunctionParam<'_>,
|
||||
source_range: SourceRange,
|
||||
exec_state: &mut ExecState,
|
||||
) -> Result<KclValue, KclError> {
|
||||
@ -199,10 +199,10 @@ async fn inner_reduce<'a>(
|
||||
Ok(reduced)
|
||||
}
|
||||
|
||||
async fn call_reduce_closure<'a>(
|
||||
async fn call_reduce_closure(
|
||||
elem: KclValue,
|
||||
start: KclValue,
|
||||
reduce_fn: &FunctionParam<'a>,
|
||||
reduce_fn: &FunctionParam<'_>,
|
||||
source_range: SourceRange,
|
||||
exec_state: &mut ExecState,
|
||||
) -> Result<KclValue, KclError> {
|
||||
|
||||
@ -350,11 +350,11 @@ async fn inner_pattern_transform_2d<'a>(
|
||||
execute_pattern_transform(transform, solid_set, exec_state, args).await
|
||||
}
|
||||
|
||||
async fn execute_pattern_transform<'a, T: GeometryTrait>(
|
||||
async fn execute_pattern_transform<T: GeometryTrait>(
|
||||
transforms: Vec<Vec<Transform>>,
|
||||
geo_set: T::Set,
|
||||
exec_state: &mut ExecState,
|
||||
args: &'a Args,
|
||||
args: &Args,
|
||||
) -> Result<Vec<T>, KclError> {
|
||||
// Flush the batch for our fillets/chamfers if there are any.
|
||||
// If we do not flush these, then you won't be able to pattern something with fillets.
|
||||
@ -414,9 +414,9 @@ async fn send_pattern_transform<T: GeometryTrait>(
|
||||
Ok(geometries)
|
||||
}
|
||||
|
||||
async fn make_transform<'a, T: GeometryTrait>(
|
||||
async fn make_transform<T: GeometryTrait>(
|
||||
i: u32,
|
||||
transform_function: &FunctionParam<'a>,
|
||||
transform_function: &FunctionParam<'_>,
|
||||
source_range: SourceRange,
|
||||
exec_state: &mut ExecState,
|
||||
) -> Result<Vec<Transform>, KclError> {
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "1.83.0"
|
||||
channel = "1.84.1"
|
||||
components = ["clippy", "rustfmt"]
|
||||
|
||||
Reference in New Issue
Block a user