Skip to content

Commit bd8289a

Browse files
chore(formatting): formatting code
1 parent 600afbe commit bd8289a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/dynamixel_protocol/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ trait Protocol<P: Packet> {
346346

347347
fn reboot(&self, port: &mut dyn SerialPort, id: u8) -> Result<bool> {
348348
self.send_instruction_packet(port, P::reboot_packet(id).as_ref())?;
349-
349+
350350
Ok(self.read_status_packet(port, id).is_ok())
351351
}
352352

src/dynamixel_protocol/v2.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,10 @@ mod tests {
335335
fn create_reboot_packet() {
336336
let p = PacketV2::reboot_packet(2);
337337
let bytes = p.to_bytes();
338-
assert_eq!(bytes, [0xff, 0xff, 0xfd, 0x0, 0x2, 0x3, 0x0, 0x8, 0x2f, 0x72]);
338+
assert_eq!(
339+
bytes,
340+
[0xff, 0xff, 0xfd, 0x0, 0x2, 0x3, 0x0, 0x8, 0x2f, 0x72]
341+
);
339342
}
340343

341344
#[test]

0 commit comments

Comments
 (0)