mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 21:48:42 +00:00
Require Send
and Sync
for trait Fetcher
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
31b7439a69
commit
d373ad5145
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ mod gh_crate_meta;
|
||||||
mod quickinstall;
|
mod quickinstall;
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
pub trait Fetcher {
|
pub trait Fetcher: Send + Sync {
|
||||||
/// Create a new fetcher from some data
|
/// Create a new fetcher from some data
|
||||||
async fn new(data: &Data) -> Arc<Self>
|
async fn new(data: &Data) -> Arc<Self>
|
||||||
where
|
where
|
||||||
|
|
Loading…
Add table
Reference in a new issue