forked from M-Labs/artiq-zynq
cargo fmt
This commit is contained in:
parent
b4cc072e8e
commit
844c083ee4
|
@ -153,7 +153,10 @@ mod remote_coremgmt {
|
||||||
aux_mutex,
|
aux_mutex,
|
||||||
linkno,
|
linkno,
|
||||||
routing_table,
|
routing_table,
|
||||||
&Packet::CoreMgmtGetLogRequest { destination, clear: false },
|
&Packet::CoreMgmtGetLogRequest {
|
||||||
|
destination,
|
||||||
|
clear: false,
|
||||||
|
},
|
||||||
timer,
|
timer,
|
||||||
)
|
)
|
||||||
.await?
|
.await?
|
||||||
|
@ -228,12 +231,17 @@ mod remote_coremgmt {
|
||||||
aux_mutex,
|
aux_mutex,
|
||||||
linkno,
|
linkno,
|
||||||
routing_table,
|
routing_table,
|
||||||
&Packet::CoreMgmtGetLogRequest { destination, clear: true },
|
&Packet::CoreMgmtGetLogRequest {
|
||||||
|
destination,
|
||||||
|
clear: true,
|
||||||
|
},
|
||||||
timer,
|
timer,
|
||||||
).await {
|
)
|
||||||
|
.await
|
||||||
|
{
|
||||||
Ok(Packet::CoreMgmtGetLogReply { last, length, data }) => {
|
Ok(Packet::CoreMgmtGetLogReply { last, length, data }) => {
|
||||||
write_chunk(stream, &data[..length as usize]).await?;
|
write_chunk(stream, &data[..length as usize]).await?;
|
||||||
},
|
}
|
||||||
|
|
||||||
_ => return Err(drtio::Error::UnexpectedReply.into()),
|
_ => return Err(drtio::Error::UnexpectedReply.into()),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue