Commit Graph

3 Commits

Author SHA1 Message Date
Mikolaj Wielgus d286f5c182 contracts: Replace `return` with block break
Without that, postconditions were skipped.
2023-09-15 20:16:37 +02:00
Mikolaj Wielgus 82081ef170 contracts: Use block instead of closure for original function body
I don't know why Contracts uses a closure, code block works just fine
while avoiding bugs. I may find out the hard way later.
2023-09-15 00:13:39 +02:00
Mikolaj Wielgus 35484972ef Vendor contracts crate 2023-09-15 00:10:10 +02:00