From b040739b75a24f26a870cfd4630b75986635b02d Mon Sep 17 00:00:00 2001 From: Walker Crouse Date: Fri, 11 Aug 2023 12:21:39 -0700 Subject: [PATCH] fix clippy warning Signed-off-by: Walker Crouse --- zeroconf/src/macos/bonjour_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroconf/src/macos/bonjour_util.rs b/zeroconf/src/macos/bonjour_util.rs index 299a57c..196c0f4 100644 --- a/zeroconf/src/macos/bonjour_util.rs +++ b/zeroconf/src/macos/bonjour_util.rs @@ -31,7 +31,7 @@ pub fn sys_exec DNSServiceErrorType>(func: F, message: &str) -> c let err = func(); if err < 0 { - crate::Result::Err(format!("{}", format!("{} (code: {})", message, err)).into()) + crate::Result::Err(format!("{} (code: {})", message, err).into()) } else { crate::Result::Ok(()) }