diff --git a/lib/src/component/compute_runtime.rs b/lib/src/component/compute_runtime.rs index 9c4bf962..0f2d6d8b 100644 --- a/lib/src/component/compute_runtime.rs +++ b/lib/src/component/compute_runtime.rs @@ -1,4 +1,4 @@ -use super::fastly::api::{types, compute_runtime}; +use super::fastly::api::{compute_runtime, types}; use crate::session::Session; use std::sync::atomic::Ordering; diff --git a/test-fixtures/src/bin/vcpu_time_test.rs b/test-fixtures/src/bin/vcpu_time_test.rs index 65401691..b3ba6e72 100644 --- a/test-fixtures/src/bin/vcpu_time_test.rs +++ b/test-fixtures/src/bin/vcpu_time_test.rs @@ -3,7 +3,7 @@ use fastly::{Error, Request, Response}; use fastly_shared::FastlyStatus; use hex_literal::hex; use sha2::{Sha512, Digest}; -use std::time::{Duration, Instant}; +use std::time::Instant; #[link(wasm_import_module = "fastly_compute_runtime")] extern "C" { @@ -62,8 +62,8 @@ d41a57a4e18ffd2a07a452cd8175b8f5a4868dd fn main() -> Result<(), Error> { let client_req = Request::from_client(); - test_that_waiting_for_servers_increases_only_wall_time(client_req); - test_that_computing_factorial_increases_vcpu_time(); + test_that_waiting_for_servers_increases_only_wall_time(client_req)?; + test_that_computing_factorial_increases_vcpu_time()?; Response::from_status(200).send_to_client(); Ok(())