Merge pull request #3740 from rtfeldman/restore-roc-run

This commit is contained in:
Brian Hicks 2022-08-10 08:04:21 -05:00 committed by GitHub
commit 1f45d13c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -525,7 +525,9 @@ pub fn build(
}
let wasm_dev_stack_bytes: Option<u32> = matches
.value_of(FLAG_WASM_STACK_SIZE_KB)
.try_get_one::<&str>(FLAG_WASM_STACK_SIZE_KB)
.ok()
.flatten()
.and_then(|s| s.parse::<u32>().ok())
.map(|x| x * 1024);