restrict clippy::string_slice

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-07-08 16:30:59 +00:00
parent 51df946911
commit 59d86d3641
5 changed files with 7 additions and 2 deletions

View file

@ -484,6 +484,7 @@ impl FedDest {
}
#[inline]
#[allow(clippy::string_slice)]
fn port(&self) -> Option<u16> {
match &self {
Self::Literal(addr) => Some(addr.port()),