From 87c952dd9c92b93805ae2eaaab1122e5ce19955e Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Sat, 23 Nov 2024 00:14:39 +0800 Subject: [PATCH] doc: fix typos Found via `codespell -L crate,ratatui,splitted` --- src/clean_retained.rs | 2 +- src/interactive/mqtt_thread.rs | 4 ++-- src/mqtt/connect.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/clean_retained.rs b/src/clean_retained.rs index 58e40dc5..93b5f5e2 100644 --- a/src/clean_retained.rs +++ b/src/clean_retained.rs @@ -16,7 +16,7 @@ pub fn clean_retained(client: &Client, mut connection: Connection, dry_run: bool } Ok(rumqttc::Event::Incoming(rumqttc::Packet::Publish(publish))) => { if publish.payload.is_empty() { - // Thats probably myself cleaning up + // That's probably myself cleaning up continue; } if !publish.retain { diff --git a/src/interactive/mqtt_thread.rs b/src/interactive/mqtt_thread.rs index 3481355a..05361093 100644 --- a/src/interactive/mqtt_thread.rs +++ b/src/interactive/mqtt_thread.rs @@ -60,13 +60,13 @@ impl MqttThread { pub fn has_connection_err(&self) -> Option { self.connection_err .read() - .expect("mqtt history thread paniced") + .expect("mqtt history thread panicked") .as_ref() .map(ToString::to_string) } pub fn get_history(&self) -> RwLockReadGuard { - self.history.read().expect("mqtt history thread paniced") + self.history.read().expect("mqtt history thread panicked") } pub fn clean_below(&self, topic: &str) -> anyhow::Result<()> { diff --git a/src/mqtt/connect.rs b/src/mqtt/connect.rs index e32d0a5c..2ed226f6 100644 --- a/src/mqtt/connect.rs +++ b/src/mqtt/connect.rs @@ -68,6 +68,6 @@ pub fn connect( } } Err(anyhow::anyhow!( - "The MQTT connection to {broker} ended unexpectedly before it was acknowleged." + "The MQTT connection to {broker} ended unexpectedly before it was acknowledged." )) }