Adrian Heine 1 year ago
parent
commit
b9d1303d06
  1. 2
      Cargo.toml
  2. 11
      src/setup/core.rs

2
Cargo.toml

@ -10,7 +10,7 @@ users = "0.11.0"
regex = "1.0.1"
futures-util = "0.3"
async-trait = "0.1.65"
tokio = { version = "1.6.1", features = ["rt", "process", "io-util", "macros", "sync"] }
tokio = { version = "1.26", features = ["rt", "process", "io-util", "macros", "sync"] }
once_cell = "1.4"
slog = { version = "2", features = ["max_level_trace", "release_max_level_trace"] }
slog-term = "2.5"

11
src/setup/core.rs

@ -21,17 +21,6 @@ pub trait AddGeneric<X: ToArtifact> {
}
macro_rules! add_generic {
// Workaround for https://github.com/tokio-rs/tokio/issues/5502
() => (
#[async_trait(?Send)]
impl<SR, L, B, Rs, As> AddGeneric<()> for Setup<SR, L, B, Rs, As>
{
async fn add_generic(&self, _: &Rc<Logger>, (): ()) -> Result<((), bool), Box<dyn Error>>
{
Ok(((), false))
}
}
);
( $($name:ident)* ) => (
#[async_trait(?Send)]
#[allow(non_snake_case)]

Loading…
Cancel
Save