diff --git a/amqp_transport/src/tests.rs b/amqp_transport/src/tests.rs index b6af887..1920fe1 100644 --- a/amqp_transport/src/tests.rs +++ b/amqp_transport/src/tests.rs @@ -1,4 +1,4 @@ -use crate::frame::FrameType; +use crate::frame::{ChannelId, FrameType}; use crate::{frame, methods}; use amqp_core::methods::{FieldValue, Method}; use std::collections::HashMap; @@ -21,7 +21,7 @@ async fn write_start_ok_frame() { let frame = frame::Frame { kind: FrameType::Method, - channel: 0, + channel: ChannelId::zero(), payload: payload.into(), }; diff --git a/xtask/src/test_js.rs b/xtask/src/test_js.rs index cc94422..c625d48 100644 --- a/xtask/src/test_js.rs +++ b/xtask/src/test_js.rs @@ -1,7 +1,7 @@ use crate::project_root; use anyhow::{bail, Context, Result}; use std::path::Path; -use std::process::{Command, Stdio}; +use std::process::Command; pub fn main() -> Result<()> { let project_root = project_root();