Skip to content
Snippets Groups Projects
Verified Commit 7d05d3ea authored by Eduardo Trujillo's avatar Eduardo Trujillo
Browse files

refactor: Remove needless borrows

parent 490e38c9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment