Rename second euph Message to SmallMessage
This commit is contained in:
parent
8e2e7d4764
commit
ac2602c4b8
5 changed files with 16 additions and 17 deletions
|
|
@ -8,8 +8,8 @@ use time::format_description::FormatItem;
|
|||
use time::macros::format_description;
|
||||
use unicode_width::UnicodeWidthStr;
|
||||
|
||||
use crate::euph;
|
||||
use crate::euph::api::Snowflake;
|
||||
use crate::euph::SmallMessage;
|
||||
use crate::store::{MsgStore, Tree};
|
||||
use crate::vault::Vault;
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ pub async fn export(vault: &Vault, room: String, file: &Path) -> anyhow::Result<
|
|||
|
||||
fn write_tree(
|
||||
file: &mut BufWriter<File>,
|
||||
tree: &Tree<euph::Message>,
|
||||
tree: &Tree<SmallMessage>,
|
||||
id: Snowflake,
|
||||
indent: usize,
|
||||
) -> anyhow::Result<()> {
|
||||
|
|
@ -68,7 +68,7 @@ fn write_tree(
|
|||
fn write_msg(
|
||||
file: &mut BufWriter<File>,
|
||||
indent_string: &str,
|
||||
msg: &euph::Message,
|
||||
msg: &SmallMessage,
|
||||
) -> anyhow::Result<()> {
|
||||
let nick = &msg.nick;
|
||||
let nick_empty = " ".repeat(nick.width());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue