chore: fix clippy

This commit is contained in:
Michel de Graaf
2025-07-31 22:01:00 +02:00
parent 843fb79d59
commit 5aa4472510
5 changed files with 26 additions and 2 deletions
+6
View File
@@ -11,6 +11,12 @@ pub struct Handlers<Op> {
handlers: HashMap<u8, Box<dyn MessageHandler<Op>>>,
}
impl<Op> Default for Handlers<Op> {
fn default() -> Self {
Self::new()
}
}
impl<Op> Handlers<Op> {
pub fn new() -> Self {
Self {
+6
View File
@@ -27,6 +27,12 @@ pub struct MessageReader {
buffer: VecDeque<u8>,
}
impl Default for MessageReader {
fn default() -> Self {
Self::new()
}
}
impl MessageReader {
pub fn new() -> Self {
Self {
+6
View File
@@ -37,6 +37,12 @@ pub struct Message {
pointer: usize,
}
impl Default for Message {
fn default() -> Self {
Self::new()
}
}
impl Message {
pub fn new() -> Self {
Self {