Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/smol_str/src/borsh.rs')
-rw-r--r--lib/smol_str/src/borsh.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smol_str/src/borsh.rs b/lib/smol_str/src/borsh.rs
index 5617bce371..362c288d01 100644
--- a/lib/smol_str/src/borsh.rs
+++ b/lib/smol_str/src/borsh.rs
@@ -22,7 +22,7 @@ impl BorshDeserialize for SmolStr {
Error::new(ErrorKind::InvalidData, msg)
})?;
Ok(SmolStr(Repr::Inline {
- len: unsafe { transmute(len as u8) },
+ len: unsafe { transmute::<u8, crate::InlineSize>(len as u8) },
buf,
}))
} else {