diff --git a/Cargo.lock b/Cargo.lock index 7348e697..2f3fd6c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1872,9 +1872,9 @@ dependencies = [ [[package]] name = "kittycad" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1777b503442fa4666564cc3ab237d456df853a09648a4b2bb09622d25d021a5" +checksum = "d95daf74937915b31aa164ba7b34a5d1e0f6a82de748addd926b4dc6c2760c44" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 33d2ea81..e0afc3e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ http = "0.2.6" itertools = "0.12.1" kcl-lib = "0.1.71" kcl-test-server = "0.1.2" -kittycad = { version = "0.3.5", features = ["clap", "tabled", "requests", "retry"] } +kittycad = { version = "0.3.8", features = ["clap", "tabled", "requests", "retry"] } log = "0.4.22" nu-ansi-term = "0.50.0" num-traits = "0.2.19" diff --git a/src/cmd_api_call.rs b/src/cmd_api_call.rs index c82ea0b8..245aeda6 100644 --- a/src/cmd_api_call.rs +++ b/src/cmd_api_call.rs @@ -48,7 +48,7 @@ impl crate::cmd::Command for CmdApiCallStatus { async fn run(&self, ctx: &mut crate::context::Context) -> Result<()> { let client = ctx.api_client("")?; - let api_call = client.api_calls().get_async_operation(&self.id.to_string()).await?; + let api_call = client.api_calls().get_async_operation(self.id).await?; // If it is a file conversion and there is output, we need to save that output to a file // for them. diff --git a/src/context.rs b/src/context.rs index 779dd54b..253721d4 100644 --- a/src/context.rs +++ b/src/context.rs @@ -206,7 +206,7 @@ impl Context<'_> { && start.elapsed().as_secs() < 60 * 5 { // Poll for the status. - let result = client.api_calls().get_async_operation(&model.id.to_string()).await?; + let result = client.api_calls().get_async_operation(model.id).await?; if let kittycad::types::AsyncApiCallOutput::TextToCad { completed_at,