Skip to content

Commit

Permalink
Drop unnecessary thunk
Browse files Browse the repository at this point in the history
(plus it's not FFI-safe)
  • Loading branch information
rtfeldman committed Jun 26, 2023
1 parent fb17e57 commit 0af548a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/glue/tests/fixtures/nullable-unwrapped/platform.roc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ platform "test-platform"

StrConsList : [Nil, Cons Str StrConsList]

mainForHost : {} -> StrConsList
mainForHost = \{} -> main
mainForHost : StrConsList
mainForHost = main
2 changes: 1 addition & 1 deletion crates/glue/tests/fixtures/nullable-unwrapped/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub extern "C" fn rust_main() -> i32 {
use std::cmp::Ordering;
use std::collections::hash_set::HashSet;

let tag_union = roc_app::mainForHost(());
let tag_union = roc_app::mainForHost();

// Verify that it has all the expected traits.

Expand Down

0 comments on commit 0af548a

Please sign in to comment.