summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-30 22:18:21 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-30 22:18:21 -0700
commit8672ce0c95bf5d6e6b721694bd0e5944d4af556b (patch)
treead54ebc4603c410cd9eb0b2f07cf133a701ff185 /support
parent7cc7912b2834f9f5dde95412e5302f13fb82042c (diff)
downloadmc-8672ce0c95bf5d6e6b721694bd0e5944d4af556b.tar.gz
Replace bio.status(@t) with std.result(@t, bio.err)
It's more consistent.
Diffstat (limited to 'support')
-rw-r--r--support/dumpleak.myr12
1 files changed, 6 insertions, 6 deletions
diff --git a/support/dumpleak.myr b/support/dumpleak.myr
index 557e8aa..dcd6c07 100644
--- a/support/dumpleak.myr
+++ b/support/dumpleak.myr
@@ -50,11 +50,11 @@ const main = {args
const dump = {path, f, stats
while true
match bio.getle64(f)
- | `bio.Ok 0: tracealloc(path, f, stats)
- | `bio.Ok 1: tracefree(path, f, stats)
- | `bio.Eof: break
- | `bio.Ok wat: std.fatal("unknown action type {x}\n", wat)
- | `bio.Err e: std.fatal("failed to read {}: {}\n", path, e)
+ | `std.Err `bio.Eof: break
+ | `std.Ok 0: tracealloc(path, f, stats)
+ | `std.Ok 1: tracefree(path, f, stats)
+ | `std.Ok wat: std.fatal("unknown action type {x}\n", wat)
+ | `std.Err e: std.fatal("failed to read {}: {}\n", path, e)
;;
;;
if !summary
@@ -116,7 +116,7 @@ const dumptrace = {tab
const get64 = {path, f
match bio.getle64(f)
- | `bio.Ok v: -> v
+ | `std.Ok v: -> v
| res: std.fatal("failed to read {}: {}\n", path, res)
;;
}