forked from lix-project/lix
Apply suggestions from code review
Style fixes from @edolstra Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
f21dec5bef
commit
7d7e00272a
|
@ -692,7 +692,7 @@ void NixRepl::reloadFiles()
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto & [i, what] : getValues()) {
|
for (auto & [i, what] : getValues()) {
|
||||||
notice("Loading Installable '%1%'...", what);
|
notice("Loading installable '%1%'...", what);
|
||||||
addAttrsToScope(*i);
|
addAttrsToScope(*i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -943,7 +943,7 @@ struct CmdRepl : InstallablesCommand
|
||||||
auto what = installable->what();
|
auto what = installable->what();
|
||||||
state->forceValue(*val, pos);
|
state->forceValue(*val, pos);
|
||||||
auto autoArgs = getAutoArgs(*state);
|
auto autoArgs = getAutoArgs(*state);
|
||||||
Value *valPost = state->allocValue();
|
auto valPost = state->allocValue();
|
||||||
state->autoCallFunction(*autoArgs, *val, *valPost);
|
state->autoCallFunction(*autoArgs, *val, *valPost);
|
||||||
state->forceValue(*valPost, pos);
|
state->forceValue(*valPost, pos);
|
||||||
values.push_back( {valPost, what });
|
values.push_back( {valPost, what });
|
||||||
|
|
Loading…
Reference in a new issue