Pull in fix for tokio-rs/tokio#5502
This commit is contained in:
parent
b32b0eaedc
commit
b9d1303d06
2 changed files with 1 additions and 12 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue