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 = [
"lib/mammoth", "lib/yellowstone", "lib/yunq", "lib/yunq-derive", "usr/testbed",
]
resolver = "2"
# the profile used for `cargo build`
[profile.dev]

View File

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

View File

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