Skip to content

Commit e39d7c6

Browse files
FooBarWidgetsylvestre
authored andcommitted
Upgrade futures-locks to 0.7.0
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.
1 parent cc6e1fb commit e39d7c6

File tree

3 files changed

+42
-64
lines changed

3 files changed

+42
-64
lines changed

Cargo.lock

Lines changed: 39 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ env_logger = "0.9"
3939
filetime = "0.2"
4040
flate2 = { version = "1.0", optional = true, default-features = false, features = ["rust_backend"] }
4141
futures = "0.3"
42-
futures-locks = "0.6"
42+
futures-locks = "0.7"
4343
hmac = { version = "0.12.0", optional = true }
4444
http = "0.2"
4545
hyper = { version = "0.14", optional = true, features = ["server"] }

src/compiler/compiler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ enum CacheLookupResult {
112112
}
113113

114114
/// An interface to a compiler for argument parsing.
115-
pub trait Compiler<T>: Send + 'static
115+
pub trait Compiler<T>: Send + Sync + 'static
116116
where
117117
T: CommandCreatorSync,
118118
{
@@ -136,7 +136,7 @@ impl<T: CommandCreatorSync> Clone for Box<dyn Compiler<T>> {
136136
}
137137
}
138138

139-
pub trait CompilerProxy<T>: Send + 'static
139+
pub trait CompilerProxy<T>: Send + Sync + 'static
140140
where
141141
T: CommandCreatorSync + Sized,
142142
{

0 commit comments

Comments
 (0)