From 246ba6795e6a0c98cadedb0a759453391e8b2a48 Mon Sep 17 00:00:00 2001 From: occheung Date: Mon, 26 Aug 2024 11:38:06 +0800 Subject: [PATCH] drtio mgmt: remove lifetime qualifiers --- src/runtime/src/mgmt.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/runtime/src/mgmt.rs b/src/runtime/src/mgmt.rs index 9b02469..2198f76 100644 --- a/src/runtime/src/mgmt.rs +++ b/src/runtime/src/mgmt.rs @@ -638,7 +638,7 @@ mod local_coremgmt { Ok(()) } - pub async fn pull_log<'a>(stream: &'a mut TcpStream, pull_id: &Rc>) -> Result<()> { + pub async fn pull_log(stream: &mut TcpStream, pull_id: &Rc>) -> Result<()> { let id = { let mut guard = pull_id.borrow_mut(); *guard += 1; @@ -695,10 +695,10 @@ mod local_coremgmt { Ok(()) } - pub async fn config_write<'a>( + pub async fn config_write( stream: &mut TcpStream, cfg: &Rc, - key: &'a String, + key: &String, value: Vec, ) -> Result<()> { let value = cfg.write(&key, value); @@ -713,7 +713,7 @@ mod local_coremgmt { Ok(()) } - pub async fn config_remove<'a>(stream: &mut TcpStream, cfg: &Rc, key: &'a String) -> Result<()> { + pub async fn config_remove(stream: &mut TcpStream, cfg: &Rc, key: &String) -> Result<()> { let value = cfg.remove(&key); if value.is_ok() { debug!("erase success");