aboutsummaryrefslogtreecommitdiff
path: root/evc/src/format/ser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'evc/src/format/ser.rs')
-rw-r--r--evc/src/format/ser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/evc/src/format/ser.rs b/evc/src/format/ser.rs
index 995ca75..f063377 100644
--- a/evc/src/format/ser.rs
+++ b/evc/src/format/ser.rs
@@ -151,7 +151,7 @@ impl Ser for u16 {
fn write(&self, sink: &mut impl Write) -> anyhow::Result<()> {
Ok(sink
.write_all(&unsafe { std::mem::transmute_copy::<_, [u8; 2]>(self) })
- .context("write 16")?)
+ .context("write u16")?)
}
fn read(source: &mut impl Read) -> anyhow::Result<Self> {
let mut buf = [0u8; 2];