From 28b30127cb0fcfebdf852e738d9cbac8db1b64ab Mon Sep 17 00:00:00 2001 From: Adam Chalmers Date: Fri, 7 Jun 2024 23:52:28 -0500 Subject: [PATCH] Lints --- src/wasm-lib/kcl-test-server/src/main.rs | 3 +++ src/wasm-lib/kcl/src/executor.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wasm-lib/kcl-test-server/src/main.rs b/src/wasm-lib/kcl-test-server/src/main.rs index 03c862878..61e8b95cf 100644 --- a/src/wasm-lib/kcl-test-server/src/main.rs +++ b/src/wasm-lib/kcl-test-server/src/main.rs @@ -96,17 +96,20 @@ async fn snapshot_endpoint(body: Vec, state3: ExecutorContext) -> Response Response { + eprintln!("\tBad request"); let mut resp = Response::new(Body::from(msg)); *resp.status_mut() = hyper::StatusCode::BAD_REQUEST; resp } fn bad_gateway(msg: String) -> Response { + eprintln!("\tBad gateway"); let mut resp = Response::new(Body::from(msg)); *resp.status_mut() = hyper::StatusCode::BAD_GATEWAY; resp } fn kcl_err(err: anyhow::Error) -> Response { + eprintln!("\tBad KCL"); bad_gateway(format!("{err}")) } diff --git a/src/wasm-lib/kcl/src/executor.rs b/src/wasm-lib/kcl/src/executor.rs index 6d4249c28..64a10b109 100644 --- a/src/wasm-lib/kcl/src/executor.rs +++ b/src/wasm-lib/kcl/src/executor.rs @@ -1127,7 +1127,7 @@ impl ExecutorContext { pub async fn reset_scene(&self) -> Result<()> { self.engine .send_modeling_cmd( - uuid::Uuid::new_v4().into(), + uuid::Uuid::new_v4(), SourceRange::default(), kittycad::types::ModelingCmd::SceneClearAll {}, )