Skip to content

Commit

Permalink
Turn off checks that assume windows/unix for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed Sep 29, 2024
1 parent 94ee654 commit fd1c19a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions takolib/src/ast/string_interner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ assert_eq_size!(Identifier, [u8; 8]);
assert_eq_size!([Identifier; 2], [u8; 16]);
// This means we can store two identifier references in the AST in the same
// memory as a &str.
#[cfg(not(target_family="wasm"))]
assert_eq_size!([Identifier; 2], &str);
// And 3 in the space of a String.
#[cfg(not(target_family="wasm"))]
assert_eq_size!([Identifier; 3], String);

#[derive(Clone, Debug, Hash, PartialEq, Eq)]
Expand Down

0 comments on commit fd1c19a

Please sign in to comment.