Require Send and Sync for trait Fetcher

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-07 15:28:48 +10:00
parent 31b7439a69
commit d373ad5145
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -11,7 +11,7 @@ mod gh_crate_meta;
mod quickinstall;
#[async_trait::async_trait]
pub trait Fetcher {
pub trait Fetcher: Send + Sync {
/// Create a new fetcher from some data
async fn new(data: &Data) -> Arc<Self>
where