Skip to content

Commit

Permalink
Upgrade futures-locks to 0.7.0
Browse files Browse the repository at this point in the history
0.7.0 only has 1 significant change that impacts us: RwLock is now only Sync if its inner type is also.

Part of #1110.
  • Loading branch information
FooBarWidget authored and sylvestre committed Feb 16, 2022
1 parent cc6e1fb commit e39d7c6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 64 deletions.
100 changes: 39 additions & 61 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ env_logger = "0.9"
filetime = "0.2"
flate2 = { version = "1.0", optional = true, default-features = false, features = ["rust_backend"] }
futures = "0.3"
futures-locks = "0.6"
futures-locks = "0.7"
hmac = { version = "0.12.0", optional = true }
http = "0.2"
hyper = { version = "0.14", optional = true, features = ["server"] }
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ enum CacheLookupResult {
}

/// An interface to a compiler for argument parsing.
pub trait Compiler<T>: Send + 'static
pub trait Compiler<T>: Send + Sync + 'static
where
T: CommandCreatorSync,
{
Expand All @@ -136,7 +136,7 @@ impl<T: CommandCreatorSync> Clone for Box<dyn Compiler<T>> {
}
}

pub trait CompilerProxy<T>: Send + 'static
pub trait CompilerProxy<T>: Send + Sync + 'static
where
T: CommandCreatorSync + Sized,
{
Expand Down

0 comments on commit e39d7c6

Please sign in to comment.