Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benchmarks/mocket/main.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async fn main {
fn benchmark_port() -> Int {
match @env.get_env_var("PORT") {
Some(port_text) => {
let port : Int = @strconv.from_str(port_text) catch { _ => 3000 }
let port : Int = @string.from_str(port_text) catch { _ => 3000 }
port
}
None => 3000
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/mocket/moon.pkg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
"moonbitlang/async",
"moonbitlang/core/env",
"moonbitlang/core/json",
"moonbitlang/core/strconv",
"moonbitlang/core/string",
"oboard/mocket" @mocket_lib,
}

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/mocket_middleware/main.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn noop_middleware() -> @mocket_lib.Middleware {
fn benchmark_port() -> Int {
match @env.get_env_var("PORT") {
Some(port_text) => {
let port : Int = @strconv.from_str(port_text) catch { _ => 3000 }
let port : Int = @string.from_str(port_text) catch { _ => 3000 }
port
}
None => 3000
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/mocket_middleware/moon.pkg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
"moonbitlang/async",
"moonbitlang/core/env",
"moonbitlang/core/json",
"moonbitlang/core/strconv",
"moonbitlang/core/string",
"oboard/mocket" @mocket_lib,
}

Expand Down
2 changes: 1 addition & 1 deletion examples/route/main.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async fn main {
fn example_port() -> Int {
match @env.get_env_var("MOCKET_PORT") {
Some(port_text) => {
let port : Int = @strconv.from_str(port_text) catch { _ => 4000 }
let port : Int = @string.from_str(port_text) catch { _ => 4000 }
port
}
None => 4000
Expand Down
2 changes: 1 addition & 1 deletion examples/route/moon.pkg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
"moonbitlang/async",
"moonbitlang/core/env",
"moonbitlang/core/strconv",
"moonbitlang/core/string",
"oboard/mocket",
"oboard/mocket/cors",
}
Expand Down
1 change: 0 additions & 1 deletion moon.pkg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
"moonbitlang/async/websocket",
"moonbitlang/core/bench",
"moonbitlang/core/json",
"moonbitlang/core/strconv",
"moonbitlang/core/env",
"moonbitlang/core/string",
"moonbitlang/core/buffer",
Expand Down
Loading