Skip to content

Work around borrowck issues

Jeremy Soller requested to merge NilSet:borrowck into master

Created by: NilSet

Early returns with lifetimes seem to confuse borrowck, so write down the location and move the return to the end. Can't move a lock while looking inside it, so do the work after all the inspection is done. Very hacky, should at least use an enum with some good names.

Merge request reports

Loading