aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-05-25 12:32:22 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-05-25 12:32:22 +0200
commit91b7d5373acdc5d9b3f2c13d16b9850ab5fc9e9d (patch)
treef807d49aefb53b7864109a9a1dc3780840872e53 /src/libcmd
parentba035f7dd03232d093a1265778b9587bab92cf1d (diff)
Style tweaks
Diffstat (limited to 'src/libcmd')
-rw-r--r--src/libcmd/command.hh2
-rw-r--r--src/libcmd/repl.cc8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libcmd/command.hh b/src/libcmd/command.hh
index b064f490a..916695102 100644
--- a/src/libcmd/command.hh
+++ b/src/libcmd/command.hh
@@ -274,6 +274,6 @@ void printClosureDiff(
void runRepl(
- EvalState &evalState,
+ EvalState & evalState,
const ValMap & extraEnv);
}
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index d7201b321..7d8bbdb7e 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -48,7 +48,7 @@ struct NixRepl
#endif
{
std::string curDir;
- EvalState &state;
+ EvalState & state;
Bindings * autoArgs;
size_t debugTraceIndex;
@@ -63,11 +63,11 @@ struct NixRepl
const Path historyFile;
- NixRepl(EvalState &state);
+ NixRepl(EvalState & state);
~NixRepl();
void mainLoop(const std::vector<std::string> & files);
StringSet completePrefix(const std::string & prefix);
- bool getLine(std::string & input, const std::string &prompt);
+ bool getLine(std::string & input, const std::string & prompt);
StorePath getDerivationPath(Value & v);
bool processLine(std::string line);
void loadFile(const Path & path);
@@ -96,7 +96,7 @@ std::string removeWhitespace(std::string s)
}
-NixRepl::NixRepl(EvalState &state)
+NixRepl::NixRepl(EvalState & state)
: state(state)
, debugTraceIndex(0)
, staticEnv(new StaticEnv(false, state.staticBaseEnv.get()))