From b7144e015d036c38abfa1f628c6eaa8b239e1cc3 Mon Sep 17 00:00:00 2001 From: Cain <75994858+cainthebest@users.noreply.github.com> Date: Sun, 20 Apr 2025 22:59:46 +0100 Subject: [PATCH] chore(clippy): clean up warnings --- crates/lib/src/buffer.rs | 6 +++--- crates/lib/src/services/valve_master_server/service.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/lib/src/buffer.rs b/crates/lib/src/buffer.rs index d16745d..49d1c3f 100644 --- a/crates/lib/src/buffer.rs +++ b/crates/lib/src/buffer.rs @@ -132,14 +132,14 @@ impl<'a, B: ByteOrder> Buffer<'a, B> { /// # Type Parameters /// /// * `D` - The type of string decoder to use. This type must implement the - /// `StringDecoder` trait with the same byte order as the buffer. + /// `StringDecoder` trait with the same byte order as the buffer. /// /// # Arguments /// /// * `until` - An optional delimiter. If provided, the method will read /// until this - /// delimiter is encountered. If not provided, the method will read until - /// the default delimiter of the decoder. + /// delimiter is encountered. If not provided, the method will read until + /// the default delimiter of the decoder. /// /// # Errors /// diff --git a/crates/lib/src/services/valve_master_server/service.rs b/crates/lib/src/services/valve_master_server/service.rs index f9e992c..7a43090 100644 --- a/crates/lib/src/services/valve_master_server/service.rs +++ b/crates/lib/src/services/valve_master_server/service.rs @@ -30,7 +30,7 @@ fn construct_payload(region: Region, filters: &Option, last_ip: & // The last fetched ip as a string last_ip.as_bytes(), // Followed by an ':' - &[b':'], + b":", // And the port, as a string last_port.to_string().as_bytes(), // Which needs to end with a NULL byte