mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Add inline directives to ensure unit placeholders are optimised away
This commit is contained in:
parent
d220ed7a23
commit
01b47a2ec7
2 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,7 @@ impl Serialize for u32 {
|
|||
|
||||
// Unit is used as a placeholder in parts of the Wasm spec we don't use yet
|
||||
impl Serialize for () {
|
||||
#[inline(always)]
|
||||
fn serialize<T: SerialBuffer>(&self, _buffer: &mut T) {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue