Open grishasobol opened 1 year ago
ok_or(<any type with allocations>)
should probably be refactored to ok_or_else(|| <any type with allocations>)
ok_or(<any type with allocations>)
should probably be refactored took_or_else(|| <any type with allocations>)
@grishasobol believes that these allocations do not affect anything but what's the point of having them at all if errors should be rare?
Problem to Solve
@ukint-vs saw that in some cases
.ok_or(Error::)
cause additional allocations, so we need to investigate this cases and solve them. See lazy-pages/src/common.rsPossible Solution
-
Notes
No response