Rust 1.28 has introduced the `or_default` and it seems like it's preferred over `or_insert` (https://github.com/rust-lang/rust/pull/52592/). edit: closing the issue, since it's not really the same thing in this case.