small improvement
All checks were successful
Rust/sat-rs/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2024-03-08 16:38:12 +01:00
parent 2679815c28
commit 22ba6be780
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -148,10 +148,7 @@ impl MagnetorquerModel {
pub fn send_housekeeping_data(&mut self) {
let mgt_reply = MgtReply::Hk(self.torque_dipole);
self.reply_sender
.send(SimReply {
device: SimDevice::Mgt,
reply: serde_json::to_string(&mgt_reply).expect("failed to serialize MgtReply"),
})
.send(SimReply::new(SimDevice::Mgt, mgt_reply))
.unwrap();
}