diff --git a/rust/Cargo.toml b/rust/Cargo.toml index f35d122..4898b85 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -3,6 +3,7 @@ members = [ "lib/mammoth", "lib/yellowstone", "lib/yunq", "lib/yunq-derive", "usr/testbed", ] +resolver = "2" # the profile used for `cargo build` [profile.dev] diff --git a/rust/lib/yunq/src/message.rs b/rust/lib/yunq/src/message.rs index 3369cba..357ec36 100644 --- a/rust/lib/yunq/src/message.rs +++ b/rust/lib/yunq/src/message.rs @@ -31,9 +31,9 @@ pub struct Empty {} impl YunqMessage for Empty { fn parse( - buf: &ByteBuffer, - offset: usize, - caps: &Vec, + _buf: &ByteBuffer, + _offset: usize, + _caps: &Vec, ) -> Result where Self: Sized, @@ -43,9 +43,9 @@ impl YunqMessage for Empty { fn serialize( &self, - buf: &mut ByteBuffer, - offset: usize, - caps: &mut Vec, + _buf: &mut ByteBuffer, + _offset: usize, + _caps: &mut Vec, ) -> Result { todo!() } diff --git a/yunq/rust/src/lexer.rs b/yunq/rust/src/lexer.rs index 81eab06..666c1f5 100644 --- a/yunq/rust/src/lexer.rs +++ b/yunq/rust/src/lexer.rs @@ -13,6 +13,7 @@ pub enum TokenType { } #[derive(Debug)] +#[allow(dead_code)] pub struct Token { pub token_type: TokenType, line: usize,