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

refactor: Remove needless lifetimes

parent 7d05d3ea
No related branches found
No related tags found
No related merge requests found
......@@ -13,11 +13,11 @@ use crate::{
event::Event,
};
pub async fn watch_device<'a>(
pub async fn watch_device(
conn: &Arc<SyncConnection>,
mut stop_signal_rx: broadcast::Receiver<()>,
event_tx: mpsc::Sender<Event>,
device_path: Path<'a>,
device_path: Path<'_>,
) -> Result<JoinHandle<Result<()>>> {
log::debug!("Setting up signal handlers for {}", device_path);
......
......@@ -60,10 +60,10 @@ pub enum ConnectionIdentifier {
}
impl ConnectionIdentifier {
pub async fn to_connection<'a>(
&'a self,
pub async fn to_connection(
&self,
conn: &Arc<SyncConnection>,
) -> Result<Option<ConnectionWrapper<'a>>> {
) -> Result<Option<ConnectionWrapper<'_>>> {
match self {
ConnectionIdentifier::ConnectionPath { connection_path } => {
let connection = ConnectionWrapper::from_path(connection_path).await;
......@@ -91,10 +91,10 @@ pub enum ActiveConnectionIdentifier {
}
impl ActiveConnectionIdentifier {
pub async fn to_active_connection<'a>(
&'a self,
pub async fn to_active_connection(
&self,
conn: &Arc<SyncConnection>,
) -> Result<Option<ActiveConnectionWrapper<'a>>> {
) -> Result<Option<ActiveConnectionWrapper<'_>>> {
match self {
ActiveConnectionIdentifier::ConnectionUUID { connection_uuid } => {
let manager = ManagerWrapper::from_connection(conn).await;
......
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