tower-rs / tower

async fn(Request) -> Result<Response, Error>
https://docs.rs/tower
MIT License
3.56k stars 281 forks source link

`Reconnect::new()` Generic parameters are redundant #737

Closed artshell closed 4 months ago

artshell commented 1 year ago

Reconnect::new() Generic parameters are redundant

S, Request>

    pub fn new<S, Request>(mk_service: M, target: Target) -> Self {
        Reconnect {
            mk_service,
            state: State::Idle,
            target,
            error: None,
        }
    }
GlenDC commented 12 months ago

Good spot, opened a PR for you at https://github.com/tower-rs/tower/pull/755

artshell commented 12 months ago

@GlenDC

thanks!