Skip to content

Refactoring of file function

The file function captures two mutable variables, create and new_hints, create doesn't need to be mutable but new_hints track state of the invocations of the function.

This is refactured into it's own struct, both to make it easier to write unit tests for but primarily to make the lifetimes and information for more explicit.

Merge request reports

Loading