restrict clippy::string_slice
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
51df946911
commit
59d86d3641
5 changed files with 7 additions and 2 deletions
|
@ -484,6 +484,7 @@ impl FedDest {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
#[allow(clippy::string_slice)]
|
||||
fn port(&self) -> Option<u16> {
|
||||
match &self {
|
||||
Self::Literal(addr) => Some(addr.port()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue