Skip to content

Commit

Permalink
Merge pull request #1 from apainintheneck/fix-panic-syntax
Browse files Browse the repository at this point in the history
Fix panic to avoid warning message
  • Loading branch information
schurhammer authored Jul 10, 2024
2 parents 7d2957c + 7a70628 commit fb31909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/gleamy/bench.gleam
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import gleam/int
import gleam/float
import gleam/int
import gleam/io
import gleam/list
import gleam/string
import gleam/io

@external(erlang, "os", "perf_counter")
fn perf_counter(_resolution: Int) -> Int {
panic("not implemented")
panic as "not implemented"
}

/// timestamp in milliseconds
Expand Down
4 changes: 2 additions & 2 deletions src/gleamy_bench_example.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gleamy/bench
import gleam/io
import gleam/int
import gleam/io
import gleam/list
import gleamy/bench

fn sort_int(data) {
list.sort(data, int.compare)
Expand Down

0 comments on commit fb31909

Please sign in to comment.