Skip to content

Commit a2a0dfb

Browse files
authored
Merge pull request #938 from umi-eng/lint/shorthand-struct-init
Lint: use shorthand struct initialization
2 parents 30afc3e + 0450ba3 commit a2a0dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wire/ip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ pub struct Endpoint {
391391
impl Endpoint {
392392
/// Create an endpoint address from given address and port.
393393
pub const fn new(addr: Address, port: u16) -> Endpoint {
394-
Endpoint { addr: addr, port }
394+
Endpoint { addr, port }
395395
}
396396
}
397397

0 commit comments

Comments
 (0)