Fix rust compiler warnings.

This commit is contained in:
Drew Galbraith 2024-07-28 18:14:18 -07:00
parent 1e073d5060
commit 19144f7be9
3 changed files with 8 additions and 6 deletions

View File

@ -3,6 +3,7 @@
members = [ members = [
"lib/mammoth", "lib/yellowstone", "lib/yunq", "lib/yunq-derive", "usr/testbed", "lib/mammoth", "lib/yellowstone", "lib/yunq", "lib/yunq-derive", "usr/testbed",
] ]
resolver = "2"
# the profile used for `cargo build` # the profile used for `cargo build`
[profile.dev] [profile.dev]

View File

@ -31,9 +31,9 @@ pub struct Empty {}
impl YunqMessage for Empty { impl YunqMessage for Empty {
fn parse<const N: usize>( fn parse<const N: usize>(
buf: &ByteBuffer<N>, _buf: &ByteBuffer<N>,
offset: usize, _offset: usize,
caps: &Vec<z_cap_t>, _caps: &Vec<z_cap_t>,
) -> Result<Self, ZError> ) -> Result<Self, ZError>
where where
Self: Sized, Self: Sized,
@ -43,9 +43,9 @@ impl YunqMessage for Empty {
fn serialize<const N: usize>( fn serialize<const N: usize>(
&self, &self,
buf: &mut ByteBuffer<N>, _buf: &mut ByteBuffer<N>,
offset: usize, _offset: usize,
caps: &mut Vec<z_cap_t>, _caps: &mut Vec<z_cap_t>,
) -> Result<usize, ZError> { ) -> Result<usize, ZError> {
todo!() todo!()
} }

View File

@ -13,6 +13,7 @@ pub enum TokenType {
} }
#[derive(Debug)] #[derive(Debug)]
#[allow(dead_code)]
pub struct Token { pub struct Token {
pub token_type: TokenType, pub token_type: TokenType,
line: usize, line: usize,