odysee-dl

odysee.com channel content downloader
git clone https://git.ea.contact/odysee-dl
Log | Files | Refs | README

commit 7230b89e40be57cfe5ab9f5296dde35285a3ab41
parent 0df1c3978cfa613f48ef8bbc386e06b1bb208938
Author: egor-achkasov <eaachkasov@gmail.com>
Date:   Fri,  8 May 2026 20:18:21 +0000

#[derive(Debug)] for Event

Diffstat:
Msrc/lib/event.rs | 19+------------------
1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/src/lib/event.rs b/src/lib/event.rs @@ -1,4 +1,5 @@ /// Events for mpsc +#[derive(Debug)] pub enum Event { GetChannelStarted(String), // channel url GetChannelFailed(String, String), // channel url, error message @@ -15,21 +16,3 @@ pub enum Event { Done, } - -impl std::fmt::Debug for Event { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - match self { - Event::GetChannelStarted(url) => write!(f, "GetChannelStarted({})", url), - Event::GetChannelFailed(url, err) => write!(f, "GetChannelFailed({}, {})", url, err), - Event::GetChannelFinished(url) => write!(f, "GetChannelFinished({})", url), - Event::GetPostsStarted(url) => write!(f, "GetPostsStarted({})", url), - Event::GetPostsFailed(url, err) => write!(f, "GetPostsFailed({}, {})", url, err), - Event::GetPostsFinished(url) => write!(f, "GetPostsFinished({})", url), - Event::DownloadPostStarted(name) => write!(f, "DownloadPostStarted({})", name), - Event::DownloadPostFailed(name, err) => write!(f, "DownloadPostFailed({}, {})", name, err), - Event::DownloadPostSkipped(name) => write!(f, "DownloadPostSkipped({})", name), - Event::DownloadPostFinished(name) => write!(f, "DownloadPostFinished({})", name), - Event::Done => write!(f, "Done"), - } - } -}