From 7d05d3ea4a6e82da5ea46fcf2d23b7b2c64ecde4 Mon Sep 17 00:00:00 2001
From: Eduardo Trujillo <ed@chromabits.com>
Date: Sun, 16 Jan 2022 13:35:02 -0800
Subject: [PATCH] refactor: Remove needless borrows

---
 src/identifier.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/identifier.rs b/src/identifier.rs
index 5cc7126..86d62b4 100644
--- a/src/identifier.rs
+++ b/src/identifier.rs
@@ -22,7 +22,7 @@ impl DeviceIdentifier {
             DeviceIdentifier::DeviceInterface { device_interface } => {
                 let manager = ManagerWrapper::from_connection(conn).await;
                 let device_path = manager
-                    .get_device_path_by_ip_iface(&device_interface)
+                    .get_device_path_by_ip_iface(device_interface)
                     .await?;
 
                 let owned_path = device_path.into_static();
@@ -73,7 +73,7 @@ impl ConnectionIdentifier {
             ConnectionIdentifier::ConnectionUUID { connection_uuid } => {
                 let manager_settings = ManagerSettingsWrapper::from_connection(conn).await;
                 let connection = manager_settings
-                    .get_connection_from_uuid(&connection_uuid)
+                    .get_connection_from_uuid(connection_uuid)
                     .await?;
 
                 Ok(connection)
-- 
GitLab