cargo fmt

This commit is contained in:
George Hilliard committed 2021-04-17 16:04:25 -05:00
1 parent 949192b620
commit 6ac4b70ff3
2 files changed
+3 -7

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
use super::model::EncryptionProtocol;
use aes::Aes128;
use cfb_mode::Cfb;
use cfb_mode::cipher::{NewStreamCipher, StreamCipher};
use cfb_mode::Cfb;
const XML_KEY: [u8; 8] = [0x1F, 0x2D, 0x3C, 0x4B, 0x5A, 0x69, 0x78, 0xFF];
const IV: &[u8] = b"0123456789abcdef";
+2 -6
View File
@@ -22,9 +22,7 @@ impl BcCamera {
};
sub_get_general.send(get)?;
let msg = sub_get_general
.rx
.recv_timeout(RX_TIMEOUT)?;
let msg = sub_get_general.rx.recv_timeout(RX_TIMEOUT)?;
if let BcBody::ModernMsg(ModernMsg {
payload:
@@ -112,9 +110,7 @@ impl BcCamera {
);
sub_set_general.send(set)?;
let msg = sub_set_general
.rx
.recv_timeout(RX_TIMEOUT)?;
let msg = sub_set_general.rx.recv_timeout(RX_TIMEOUT)?;
Ok(())
}