summaryrefslogtreecommitdiff
path: root/src/boot/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/mod.rs')
-rw-r--r--src/boot/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/boot/mod.rs b/src/boot/mod.rs
index bd0da0a..a68acac 100644
--- a/src/boot/mod.rs
+++ b/src/boot/mod.rs
@@ -44,9 +44,8 @@ pub struct Message {
#[serde(flatten)]
pub sent: Instant,
pub sender: Login,
- // Named this way for serialization reasons
- #[allow(clippy::struct_field_names)]
- pub message: Body,
+ pub id: message::Id,
+ pub body: String,
}
impl From<message::Message> for Message {
@@ -62,7 +61,8 @@ impl From<message::Message> for Message {
Self {
sent,
sender,
- message: Body { id, body },
+ id,
+ body,
}
}
}