mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 21:29:52 -07:00
Address some warnings and typos (#408)
This commit is contained in:
parent
2b6363f529
commit
591fc0af83
5 changed files with 5 additions and 5 deletions
|
@ -82,7 +82,7 @@ pkg install iamb
|
||||||
|
|
||||||
### macOS
|
### 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:
|
repository. To install it simply run:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -336,7 +336,7 @@ Defaults to
|
||||||
.El
|
.El
|
||||||
.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
|
.Bd -literal -offset indent
|
||||||
[settings.sort]
|
[settings.sort]
|
||||||
members = ["server", "localpart"]
|
members = ["server", "localpart"]
|
||||||
|
|
|
@ -961,7 +961,7 @@ impl Message {
|
||||||
vwctx: &ViewportContext<MessageCursor>,
|
vwctx: &ViewportContext<MessageCursor>,
|
||||||
info: &'a RoomInfo,
|
info: &'a RoomInfo,
|
||||||
settings: &'a ApplicationSettings,
|
settings: &'a ApplicationSettings,
|
||||||
) -> (Text<'a>, Option<(&dyn Protocol, u16, u16)>) {
|
) -> (Text<'a>, Option<(&'a dyn Protocol, u16, u16)>) {
|
||||||
let width = vwctx.get_width();
|
let width = vwctx.get_width();
|
||||||
|
|
||||||
let style = self.get_render_style(selected, settings);
|
let style = self.get_render_style(selected, settings);
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
//!
|
//!
|
||||||
//! Additionally, some of the iamb commands delegate behaviour to the current UI element. For
|
//! 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],
|
//! 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::cmp::{Ord, Ordering, PartialOrd};
|
||||||
use std::fmt::{self, Display};
|
use std::fmt::{self, Display};
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
|
|
@ -1311,7 +1311,7 @@ impl ClientWorker {
|
||||||
// Remove the session.json file.
|
// Remove the session.json file.
|
||||||
std::fs::remove_file(&self.settings.session_json)?;
|
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<OwnedRoomId> {
|
async fn direct_message(&mut self, user: OwnedUserId) -> IambResult<OwnedRoomId> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue