|
@@ -391,7 +391,7 @@ pub struct Endpoint {
|
|
impl Endpoint {
|
|
impl Endpoint {
|
|
/// Create an endpoint address from given address and port.
|
|
/// Create an endpoint address from given address and port.
|
|
pub const fn new(addr: Address, port: u16) -> Endpoint {
|
|
pub const fn new(addr: Address, port: u16) -> Endpoint {
|
|
- Endpoint { addr: addr, port }
|
|
|
|
|
|
+ Endpoint { addr, port }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|