forked from M-Labs/artiq-zynq
cargo fmt
This commit is contained in:
parent
246ba6795e
commit
dd32b6fe3f
|
@ -163,8 +163,9 @@ mod remote_coremgmt {
|
||||||
clear: false,
|
clear: false,
|
||||||
},
|
},
|
||||||
timer,
|
timer,
|
||||||
).await;
|
)
|
||||||
|
.await;
|
||||||
|
|
||||||
match reply {
|
match reply {
|
||||||
Ok(Packet::CoreMgmtGetLogReply { last, length, data }) => {
|
Ok(Packet::CoreMgmtGetLogReply { last, length, data }) => {
|
||||||
buffer.extend(&data[..length as usize]);
|
buffer.extend(&data[..length as usize]);
|
||||||
|
@ -695,12 +696,7 @@ mod local_coremgmt {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn config_write(
|
pub async fn config_write(stream: &mut TcpStream, cfg: &Rc<Config>, key: &String, value: Vec<u8>) -> Result<()> {
|
||||||
stream: &mut TcpStream,
|
|
||||||
cfg: &Rc<Config>,
|
|
||||||
key: &String,
|
|
||||||
value: Vec<u8>,
|
|
||||||
) -> Result<()> {
|
|
||||||
let value = cfg.write(&key, value);
|
let value = cfg.write(&key, value);
|
||||||
if value.is_ok() {
|
if value.is_ok() {
|
||||||
debug!("write success");
|
debug!("write success");
|
||||||
|
|
Loading…
Reference in New Issue