fn optional_raw_query() -> impl Filter<Extract = (Option<String>,), Error = Infallible> + Clone {
    warp::query::raw()
        .map(Some)
        .or_else(|_| future::ok::<(Option<String>,), Infallible>((None,)))
}
// Little workaround as warp does not support an optional raw query by itself.
Little workaround as warp does not support an optional raw query by itself.
Little workaround as warp does not support an optional raw query by itself .
fn optional_raw_query() -> impl Filter<Extract = (Option<String>,), Error = Infallible> + Clone {
    warp::query::raw()
        .map(Some)
        .or_else(|_| future::ok::<(Option<String>,), Infallible>((None,)))
}
fn optional_raw_query ( ) -> impl Filter < Extract = ( Option < String > , ) , Error = Infallible > + Clone { warp :: query :: raw ( ) . map ( Some ) . or_else ( | _ | future :: ok :: < ( Option < String > , ) , Infallible > ( ( None , ) ) ) }
Little workaround as warp does not support an optional raw query by itself.
Little workaround as warp does not support an optional raw query by itself .