forked from M-Labs/artiq-zynq
drtio mgmt: remove lifetime qualifiers
This commit is contained in:
parent
bfa9327a8e
commit
246ba6795e
|
@ -638,7 +638,7 @@ mod local_coremgmt {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn pull_log<'a>(stream: &'a mut TcpStream, pull_id: &Rc<RefCell<u32>>) -> Result<()> {
|
pub async fn pull_log(stream: &mut TcpStream, pull_id: &Rc<RefCell<u32>>) -> Result<()> {
|
||||||
let id = {
|
let id = {
|
||||||
let mut guard = pull_id.borrow_mut();
|
let mut guard = pull_id.borrow_mut();
|
||||||
*guard += 1;
|
*guard += 1;
|
||||||
|
@ -695,10 +695,10 @@ mod local_coremgmt {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn config_write<'a>(
|
pub async fn config_write(
|
||||||
stream: &mut TcpStream,
|
stream: &mut TcpStream,
|
||||||
cfg: &Rc<Config>,
|
cfg: &Rc<Config>,
|
||||||
key: &'a String,
|
key: &String,
|
||||||
value: Vec<u8>,
|
value: Vec<u8>,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let value = cfg.write(&key, value);
|
let value = cfg.write(&key, value);
|
||||||
|
@ -713,7 +713,7 @@ mod local_coremgmt {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn config_remove<'a>(stream: &mut TcpStream, cfg: &Rc<Config>, key: &'a String) -> Result<()> {
|
pub async fn config_remove(stream: &mut TcpStream, cfg: &Rc<Config>, key: &String) -> Result<()> {
|
||||||
let value = cfg.remove(&key);
|
let value = cfg.remove(&key);
|
||||||
if value.is_ok() {
|
if value.is_ok() {
|
||||||
debug!("erase success");
|
debug!("erase success");
|
||||||
|
|
Loading…
Reference in New Issue