From beb7e6f99417c5ec6926de2dece95607a056db04 Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 24 Oct 2024 12:58:57 +0800 Subject: [PATCH] cargo fmt --- src/libboard_artiq/src/drtioaux_proto.rs | 9 ++++++--- src/runtime/src/mgmt.rs | 3 ++- src/satman/src/main.rs | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/libboard_artiq/src/drtioaux_proto.rs b/src/libboard_artiq/src/drtioaux_proto.rs index e19dd97..922118d 100644 --- a/src/libboard_artiq/src/drtioaux_proto.rs +++ b/src/libboard_artiq/src/drtioaux_proto.rs @@ -332,7 +332,7 @@ pub enum Packet { CoreMgmtAllocatorDebugRequest { destination: u8, }, - CoreMgmtFlashRequest { + CoreMgmtFlashRequest { destination: u8, payload_length: u32, }, @@ -340,7 +340,7 @@ pub enum Packet { destination: u8, last: bool, length: u16, - data: [u8; MASTER_PAYLOAD_MAX_SIZE] + data: [u8; MASTER_PAYLOAD_MAX_SIZE], }, CoreMgmtDropLinkAck { destination: u8, @@ -1190,7 +1190,10 @@ impl Packet { writer.write_u8(0xda)?; writer.write_u8(destination)?; } - Packet::CoreMgmtFlashRequest { destination, payload_length } => { + Packet::CoreMgmtFlashRequest { + destination, + payload_length, + } => { writer.write_u8(0xdb)?; writer.write_u8(destination)?; writer.write_u32(payload_length)?; diff --git a/src/runtime/src/mgmt.rs b/src/runtime/src/mgmt.rs index 621a886..6fd82a2 100644 --- a/src/runtime/src/mgmt.rs +++ b/src/runtime/src/mgmt.rs @@ -649,7 +649,8 @@ mod remote_coremgmt { payload_length: image.len() as u32, }, timer, - ).await; + ) + .await; match alloc_reply { Ok(Packet::CoreMgmtReply { succeeded: true }) => Ok(()), diff --git a/src/satman/src/main.rs b/src/satman/src/main.rs index cf00c8a..afff3fd 100644 --- a/src/satman/src/main.rs +++ b/src/satman/src/main.rs @@ -1282,7 +1282,7 @@ fn process_aux_packet( } drtioaux::Packet::CoreMgmtFlashRequest { destination: _destination, - payload_length + payload_length, } => { forward!( router,