Fix rust compiler warnings.
This commit is contained in:
parent
1e073d5060
commit
19144f7be9
|
@ -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]
|
||||
|
|
|
@ -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!()
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ pub enum TokenType {
|
|||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[allow(dead_code)]
|
||||
pub struct Token {
|
||||
pub token_type: TokenType,
|
||||
line: usize,
|
||||
|
|
Loading…
Reference in New Issue