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

@ -3,6 +3,7 @@ use chrono::{DateTime, Duration, Utc};
use serde_derive::{Deserialize, Serialize};
use std::collections::HashMap;
use std::ops::Sub;
use async_trait::async_trait;
use url::Url;
use crate::fetchers::{FetcherTrait};
use crate::lemmy::{PartInfo, PostInfo, PostInfoInner, PostType};
@ -104,6 +105,7 @@ impl JNovelFetcher {
}
}
#[async_trait]
impl FetcherTrait for JNovelFetcher {
fn new() -> Self {
JNovelFetcher {