From 591fc0af8367cd327533c7b7600e6299eccd013c Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 15 May 2025 03:46:13 +0200 Subject: [PATCH] Address some warnings and typos (#408) --- README.md | 2 +- docs/iamb.5 | 2 +- src/message/mod.rs | 2 +- src/windows/mod.rs | 2 +- src/worker.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 08be482..ce9a9e5 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ pkg install iamb ### macOS -On macOS a [package](https://formulae.brew.sh/formula/iamb#default) is availabe in Homebrew's +On macOS a [package](https://formulae.brew.sh/formula/iamb#default) is available in Homebrew's repository. To install it simply run: ``` diff --git a/docs/iamb.5 b/docs/iamb.5 index dc288b3..b615ec6 100644 --- a/docs/iamb.5 +++ b/docs/iamb.5 @@ -336,7 +336,7 @@ Defaults to .El .El -.Ss Example 1: Group room members by ther server first +.Ss Example 1: Group room members by their server first .Bd -literal -offset indent [settings.sort] members = ["server", "localpart"] diff --git a/src/message/mod.rs b/src/message/mod.rs index ab9798e..a200140 100644 --- a/src/message/mod.rs +++ b/src/message/mod.rs @@ -961,7 +961,7 @@ impl Message { vwctx: &ViewportContext, info: &'a RoomInfo, settings: &'a ApplicationSettings, - ) -> (Text<'a>, Option<(&dyn Protocol, u16, u16)>) { + ) -> (Text<'a>, Option<(&'a dyn Protocol, u16, u16)>) { let width = vwctx.get_width(); let style = self.get_render_style(selected, settings); diff --git a/src/windows/mod.rs b/src/windows/mod.rs index c7882be..eae10d8 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -5,7 +5,7 @@ //! //! Additionally, some of the iamb commands delegate behaviour to the current UI element. For //! example, [sending messages][crate::base::SendAction] delegate to the [room window][RoomState], -//! where we have the message bar and room ID easily accesible and resetable. +//! where we have the message bar and room ID easily accessible and resettable. use std::cmp::{Ord, Ordering, PartialOrd}; use std::fmt::{self, Display}; use std::ops::Deref; diff --git a/src/worker.rs b/src/worker.rs index d47cb37..81b4865 100644 --- a/src/worker.rs +++ b/src/worker.rs @@ -1311,7 +1311,7 @@ impl ClientWorker { // Remove the session.json file. std::fs::remove_file(&self.settings.session_json)?; - Ok(Some(InfoMessage::from("Sucessfully logged out"))) + Ok(Some(InfoMessage::from("Successfully logged out"))) } async fn direct_message(&mut self, user: OwnedUserId) -> IambResult {