Closed kimhanbeom closed 2 months ago
원래 spec대로 했다가 아래 ciaddr과의 유사성 때문에 바꾼 것인데 struct field는 spec대로 chaddr로 하고 함수 안에서만 #[allow(clippy::similar_names)]
로 허용하던지 약간 다름 이름을 쓰면 됩니다.
error: binding's name is too similar to existing binding
--> src/protocols/bootp.rs:178:17
|
178 | let (input, chaddr) = map(map_parser(take(16_usize), take(hlen)), Vec::from)(input)?;
| ^^^^^^
|
note: existing binding defined here
--> src/protocols/bootp.rs:174:17
|
174 | let (input, ciaddr) = map(be_u32, |addr| IpAddr::from(Ipv4Addr::from(addr)))(input)?;
| ^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names
= note: `-D clippy::similar-names` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::similar_names)]`
migrate_0_21_0_alpha_1_to_0_21_0_alpha_2
.Close: #768