fn with_settings(
    settings: Arc<Settings>,
) -> impl Filter<Extract = (Arc<Settings>,), Error = Infallible> + Clone {
    warp::any().map(move || settings.clone())
}
// Helper wrap the server settings as parameter for the handler function.
Helper wrap the server settings as parameter for the handler function.
Helper wrap the server settings as parameter for the handler function .
fn with_settings(
    settings: Arc<Settings>,
) -> impl Filter<Extract = (Arc<Settings>,), Error = Infallible> + Clone {
    warp::any().map(move || settings.clone())
}
fn with_settings ( settings : Arc < Settings > , ) -> impl Filter < Extract = ( Arc < Settings > , ) , Error = Infallible > + Clone { warp :: any ( ) . map ( move | | settings . clone ( ) ) }
Helper wrap the server settings as parameter for the handler function.
Helper wrap the server settings as parameter for the handler function .
settings
Arc<Settings>
settings
Arc<Settings>