fix(warnings): add an underscore to unused variables

This commit is contained in:
Andrea Toska 2025-02-07 08:48:22 +01:00
commit d9cee5ddb4
9 changed files with 9 additions and 9 deletions

View file

@ -11,7 +11,7 @@ impl<'a> RmcSerialize for &'a [u8]{
}
/// DO NOT USE (also maybe split off the serialize and deserialize functions at some point)
fn deserialize(reader: &mut dyn Read) -> crate::rmc::structures::Result<Self> {
fn deserialize(_reader: &mut dyn Read) -> crate::rmc::structures::Result<Self> {
panic!("cannot deserialize to a u8 slice reference (use this ONLY for writing)")
}
}

View file

@ -22,7 +22,7 @@ impl<'a> RmcSerialize for ConnectionData<'a>{
})
}
fn deserialize(reader: &mut dyn Read) -> crate::rmc::structures::Result<Self> {
fn deserialize(_reader: &mut dyn Read) -> crate::rmc::structures::Result<Self> {
todo!()
}
}

View file

@ -23,7 +23,7 @@ impl RmcSerialize for String{
}
impl RmcSerialize for &str{
fn deserialize(reader: &mut dyn Read) -> Result<Self> {
fn deserialize(_reader: &mut dyn Read) -> Result<Self> {
panic!("cannot serialize to &str")
}
fn serialize(&self, writer: &mut dyn Write) -> Result<()> {