(c: responses::GetinfoAddress)
| 17 | #[allow(unused_variables)] |
| 18 | impl From<responses::GetinfoAddress> for pb::GetinfoAddress { |
| 19 | fn from(c: responses::GetinfoAddress) -> Self { |
| 20 | Self { |
| 21 | address: c.address, // Rule #2 for type string? |
| 22 | port: c.port.into(), // Rule #2 for type u16 |
| 23 | item_type: c.item_type as i32, |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | #[allow(unused_variables)] |