Currently it is not possible to move values into the closure used by AppLauncher::configure_env. This is a problem when you want to do some one-time setup on the closure which requires moving outer values.
Proposed solution
AppLauncher::configure_env should take a FnOnce. Since this function is only used once when calling AppLauncher::launch, which already takes mut self by value, this shouldn't break anything.
Description
Currently it is not possible to move values into the closure used by
AppLauncher::configure_env
. This is a problem when you want to do some one-time setup on the closure which requires moving outer values.Proposed solution
AppLauncher::configure_env
should take aFnOnce
. Since this function is only used once when callingAppLauncher::launch
, which already takesmut self
by value, this shouldn't break anything.