Run rustfmt

This commit is contained in:
Jonathan Tran
2025-06-24 18:43:32 -04:00
parent 37e9e9015a
commit 7b490da1b4
2 changed files with 84 additions and 75 deletions

View File

@ -462,7 +462,8 @@ async fn inner_ellipse(
let id = exec_state.next_uuid();
exec_state.batch_modeling_cmd(
exec_state
.batch_modeling_cmd(
ModelingCmdMeta::from_args_id(&args, id),
ModelingCmd::from(mcmd::ExtendPath {
path: sketch.id.into(),
@ -501,7 +502,11 @@ async fn inner_ellipse(
new_sketch.paths.push(current_path);
exec_state.batch_modeling_cmd(ModelingCmdMeta::from_args_id(&args, id), ModelingCmd::from(mcmd::ClosePath { path_id: new_sketch.id }))
exec_state
.batch_modeling_cmd(
ModelingCmdMeta::from_args_id(&args, id),
ModelingCmd::from(mcmd::ClosePath { path_id: new_sketch.id }),
)
.await?;
Ok(new_sketch)

View File

@ -11,7 +11,10 @@ use parse_display::{Display, FromStr};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use super::shapes::get_radius;
use super::{
shapes::get_radius,
utils::{untype_array, untype_point},
};
#[cfg(feature = "artifact-graph")]
use crate::execution::{Artifact, ArtifactId, CodeRef, StartSketchOnFace, StartSketchOnPlane};
use crate::{
@ -32,9 +35,6 @@ use crate::{
},
};
use super::utils::untype_array;
use super::utils::untype_point;
/// A tag for a face.
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
#[ts(export)]
@ -1882,7 +1882,8 @@ pub(crate) async fn inner_elliptic(
center_u[1] + minor_radius.to_length_units(from.units) * end_angle.to_radians().sin(),
];
exec_state.batch_modeling_cmd(
exec_state
.batch_modeling_cmd(
ModelingCmdMeta::from_args_id(&args, id),
ModelingCmd::from(mcmd::ExtendPath {
path: sketch.id.into(),
@ -2048,7 +2049,8 @@ pub(crate) async fn inner_hyperbolic(
let start_tangent = hyperbolic_tangent(from, semi_major_u, semi_minor_u);
let end_tangent = hyperbolic_tangent(end_point, semi_major_u, semi_minor_u);
exec_state.batch_modeling_cmd(
exec_state
.batch_modeling_cmd(
ModelingCmdMeta::from_args_id(&args, id),
ModelingCmd::from(mcmd::ExtendPath {
path: sketch.id.into(),
@ -2251,7 +2253,8 @@ pub(crate) async fn inner_parabolic(
let start_tangent = parabolic_tangent(from, a, b);
let end_tangent = parabolic_tangent(end_point, a, b);
exec_state.batch_modeling_cmd(
exec_state
.batch_modeling_cmd(
ModelingCmdMeta::from_args_id(&args, id),
ModelingCmd::from(mcmd::ExtendPath {
path: sketch.id.into(),
@ -2393,7 +2396,8 @@ pub(crate) async fn inner_conic(
(start, end_tan)
};
exec_state.batch_modeling_cmd(
exec_state
.batch_modeling_cmd(
ModelingCmdMeta::from_args_id(&args, id),
ModelingCmd::from(mcmd::ExtendPath {
path: sketch.id.into(),