mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Don't blow up on module timings if there was an error
This commit is contained in:
parent
62fdae8b45
commit
15d8e06a44
1 changed files with 14 additions and 13 deletions
|
@ -191,19 +191,20 @@ impl ModuleTiming {
|
||||||
|
|
||||||
end_time
|
end_time
|
||||||
.duration_since(*start_time)
|
.duration_since(*start_time)
|
||||||
.unwrap()
|
.ok()
|
||||||
.checked_sub(*solve)
|
.and_then(|t| {
|
||||||
.unwrap()
|
t.checked_sub(*solve).and_then(|t| {
|
||||||
.checked_sub(*constrain)
|
t.checked_sub(*constrain).and_then(|t| {
|
||||||
.unwrap()
|
t.checked_sub(*canonicalize).and_then(|t| {
|
||||||
.checked_sub(*canonicalize)
|
t.checked_sub(*parse_body).and_then(|t| {
|
||||||
.unwrap()
|
t.checked_sub(*parse_header)
|
||||||
.checked_sub(*parse_body)
|
.and_then(|t| t.checked_sub(*read_roc_file))
|
||||||
.unwrap()
|
})
|
||||||
.checked_sub(*parse_header)
|
})
|
||||||
.unwrap()
|
})
|
||||||
.checked_sub(*read_roc_file)
|
})
|
||||||
.unwrap()
|
})
|
||||||
|
.unwrap_or_else(Duration::default)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue