Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
Signed-off-by: Walker Crouse <walkercrouse@hotmail.com>
  • Loading branch information
windy1 committed Aug 11, 2023
1 parent 4c2deb0 commit b040739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zeroconf/src/macos/bonjour_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn sys_exec<F: FnOnce() -> 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(())
}
Expand Down

0 comments on commit b040739

Please sign in to comment.