From fff21c22f4a10d264f3b31db1c99c433975b8e2c Mon Sep 17 00:00:00 2001 From: Luz Paz Date: Wed, 5 Feb 2025 08:43:46 -0500 Subject: [PATCH] fix various typos Found via `codespell -q 3 -S "*.pdf,*.rtf,./src/translations" -L aas,aci,daa,fo,ser` --- src/gui/styles/types/color_remote.rs | 4 ++-- src/secondary_threads/parse_packets.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/styles/types/color_remote.rs b/src/gui/styles/types/color_remote.rs index 3f186eb7..c9763f4c 100644 --- a/src/gui/styles/types/color_remote.rs +++ b/src/gui/styles/types/color_remote.rs @@ -1,4 +1,4 @@ -//! Remote implemention of [`serde::Deserialize`] and [`serde::Serialize`] for [`iced::Color`]. +//! Remote implementation of [`serde::Deserialize`] and [`serde::Serialize`] for [`iced::Color`]. //! //! This implementation deserializes hexadecimal RGB(A) as string to float RGB(A) and back. //! NOTE: The alpha channel is optional and defaults to #ff or 1.0. @@ -39,7 +39,7 @@ where })? // Iterating over bytes is safe because hex is ASCII. // If the hex is not ASCII or invalid hex, then the iterator will short circuit and fail on `from_str_radix` - // TODO: This can be cleaned up when `iter_array_chunks` is stablized (https://github.com/rust-lang/rust/issues/100450) + // TODO: This can be cleaned up when `iter_array_chunks` is stabilized (https://github.com/rust-lang/rust/issues/100450) .bytes() .step_by(2) // Step by every first hex char of the two char sequence .zip(hex.bytes().skip(2).step_by(2)) // Step by every second hex char diff --git a/src/secondary_threads/parse_packets.rs b/src/secondary_threads/parse_packets.rs index fdc1a67d..41a215ca 100644 --- a/src/secondary_threads/parse_packets.rs +++ b/src/secondary_threads/parse_packets.rs @@ -239,7 +239,7 @@ fn from_null(packet: &[u8]) -> Result { let h = &packet[..4]; let b = [h[0], h[1], h[2], h[3]]; // check both big endian and little endian representations - // as some OS'es use native endianess and others use big endian + // as some OS'es use native endianness and others use big endian matches(u32::from_le_bytes(b)) || matches(u32::from_be_bytes(b)) };