Switch to new toss commit

This commit is contained in:
Joscha 2022-07-04 19:40:11 +02:00
parent 11422801b0
commit 93cc2a6c13
12 changed files with 62 additions and 80 deletions

View file

@ -4,7 +4,7 @@ use std::hash::Hash;
use async_trait::async_trait;
use chrono::{DateTime, Utc};
use crossterm::style::ContentStyle;
use toss::styled::Styled;
pub trait Msg {
type Id: Clone + Debug + Hash + Eq + Ord;
@ -12,9 +12,8 @@ pub trait Msg {
fn parent(&self) -> Option<Self::Id>;
fn time(&self) -> DateTime<Utc>;
fn nick(&self) -> String;
fn nick_style(&self) -> ContentStyle;
fn content(&self) -> String;
fn nick(&self) -> Styled;
fn content(&self) -> Styled;
}
#[derive(PartialEq, Eq, PartialOrd, Ord)]