Legacy fixes for async traits

This commit is contained in:
Neshura 2024-05-07 22:29:48 +02:00
parent affe62b973
commit 4297860b9e
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
4 changed files with 6 additions and 0 deletions
src/fetchers

View file

@ -1,3 +1,4 @@
use async_trait::async_trait;
use serde_derive::{Deserialize, Serialize};
use strum_macros::Display;
use crate::fetchers::Fetcher::Jnc;
@ -6,6 +7,7 @@ use crate::lemmy::{PostInfo};
pub mod jnovel;
#[async_trait]
pub(crate) trait FetcherTrait {
fn new() -> Self where Self: Sized;
async fn check_feed(&self) -> Result<Vec<PostInfo>, ()>;