mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 13:38:43 +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;
|
||||
|
||||
#[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
|
||||
|
|
Loading…
Add table
Reference in a new issue