⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@joebb97
Copy link
Contributor

@joebb97 joebb97 commented Jan 9, 2026

Saves from having to do

impl ServerSettings {
    fn default_bind_address() -> SocketAddr {
       "127.0.0.1:8080".parse::<std::net::SocketAddr>().unwrap().into()
    }
}

Instead we can just do

impl ServerSettings {
    fn default_bind_address() -> SocketAddr {
       "127.0.0.1:8080".parse()
    }
}

Saves from having to do

impl ServerSettings {
    fn default_bind_address() -> SocketAddr {
       "127.0.0.1:8080".parse::<std::net::SocketAddr>().unwrap().into()
    }
}

Instead we can just do

impl ServerSettings {
    fn default_bind_address() -> SocketAddr {
       "127.0.0.1:8080".parse()
    }
}
@inikulin inikulin merged commit 71e5450 into cloudflare:main Jan 10, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants