1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 13:31:48 +02:00

printLiteral: Do not overload

This commit is contained in:
Robert Hensing 2023-04-16 12:56:31 +02:00
parent 9c74df5bb4
commit 1e2dd669bc
5 changed files with 16 additions and 16 deletions

View file

@ -913,13 +913,13 @@ std::ostream & NixRepl::printValue(std::ostream & str, Value & v, unsigned int m
case nBool:
str << ANSI_CYAN;
printLiteral(str, v.boolean);
printLiteralBool(str, v.boolean);
str << ANSI_NORMAL;
break;
case nString:
str << ANSI_WARNING;
printLiteral(str, v.string.s);
printLiteralString(str, v.string.s);
str << ANSI_NORMAL;
break;
@ -959,7 +959,7 @@ std::ostream & NixRepl::printValue(std::ostream & str, Value & v, unsigned int m
if (isVarName(i.first))
str << i.first;
else
printLiteral(str, i.first);
printLiteralString(str, i.first);
str << " = ";
if (seen.count(i.second))
str << "«repeated»";