You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: async_series.rs
    path of file: ./repos/rspack/crates/rspack_hook/src
    
    the code of the file until where you have to start completion: use std::fmt;

use async_trait::async_trait;
use rspack_error::Result;
use rustc_hash::FxHashSet;

use crate::interceptor::{Hook, Interceptor};

#[async_trait]
pub trait AsyncSeries<I1> {
  async fn run(&self, input1: &mut I1) -> Result
    
  pub async fn call(&self, input1: &mut I1, input2: &mut I2) -> Result<()> {
    let mut additional_taps = Vec::new();
    for interceptor in self.interceptors.iter() {
      additional_taps.extend(interceptor.call(self).await?);
    }
    let mut all_taps = Vec::new();
    all_taps.extend(&additional_taps);
    all_taps.extend(&self.taps);
    all_taps.sort_by_key(|hook| hook.stage());
    for tap in all_taps {
      tap.run(input1, input2).await?;
    }
    Ok(())
  }