From d33f9a45d25e3f2a865de65e6011f5e16a8b7b75 Mon Sep 17 00:00:00 2001 From: Zac Mrowicki Date: Mon, 9 Jan 2023 19:27:03 +0000 Subject: [PATCH] netdog: Fix new clippy lints --- sources/api/netdog/src/cli/write_resolv_conf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/api/netdog/src/cli/write_resolv_conf.rs b/sources/api/netdog/src/cli/write_resolv_conf.rs index 46f67a6d208..e175b7c3d97 100644 --- a/sources/api/netdog/src/cli/write_resolv_conf.rs +++ b/sources/api/netdog/src/cli/write_resolv_conf.rs @@ -15,10 +15,10 @@ pub(crate) fn run() -> Result<()> { // data, so don't bother looking there. let primary_interface = primary_interface_name()?; - let primary_lease_path = dhcp_lease_path(&primary_interface); + let primary_lease_path = dhcp_lease_path(primary_interface); let dns_settings = if let Some(primary_lease_path) = primary_lease_path { let lease = - LeaseInfo::from_lease(&primary_lease_path).context(error::LeaseParseFailedSnafu)?; + LeaseInfo::from_lease(primary_lease_path).context(error::LeaseParseFailedSnafu)?; DnsSettings::from_config_or_lease(Some(&lease)).context(error::GetDnsSettingsSnafu)? } else { DnsSettings::from_config_or_lease(None).context(error::GetDnsSettingsSnafu)?