Skip to content

Commit

Permalink
doc: fix typos
Browse files Browse the repository at this point in the history
Found via `codespell -L crate,ratatui,splitted`
  • Loading branch information
kianmeng committed Nov 22, 2024
1 parent 394bdfd commit 87c952d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/clean_retained.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/interactive/mqtt_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ impl MqttThread {
pub fn has_connection_err(&self) -> Option<String> {
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<MqttHistory> {
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<()> {
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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."
))
}

0 comments on commit 87c952d

Please sign in to comment.