jaemk / cached

Rust cache structures and easy function memoization
MIT License
1.58k stars 96 forks source link

Fix 'cannot infer type' error when missing result arm #57

Closed thorhs closed 4 years ago

thorhs commented 4 years ago

Added a temporary typed variable in case the return type cannot be inferred.

There are two tests failing, but they fail on master as well.

jaemk commented 4 years ago

Looks good, thanks!