Update euphoxide to version with id newtype wrappers

This commit is contained in:
Joscha 2022-09-26 10:20:47 +02:00
parent 2d88513a28
commit 374c4c4f79
10 changed files with 131 additions and 114 deletions

View file

@ -1,7 +1,7 @@
use std::fs::File;
use std::io::{BufWriter, Write};
use euphoxide::api::Snowflake;
use euphoxide::api::MessageId;
use time::format_description::FormatItem;
use time::macros::format_description;
use unicode_width::UnicodeWidthStr;
@ -41,7 +41,7 @@ pub async fn export_to_file(
fn write_tree(
file: &mut BufWriter<File>,
tree: &Tree<SmallMessage>,
id: Snowflake,
id: MessageId,
indent: usize,
) -> anyhow::Result<()> {
let indent_string = "| ".repeat(indent);