From f8ccbb40d10288326e81612926891c68e1e69cfa Mon Sep 17 00:00:00 2001 From: kvtb <76634406+kvtb@users.noreply.github.com> Date: Mon, 6 Sep 2021 14:29:20 +0000 Subject: [PATCH] Expr::show(): avoid emiting meaningless chars --- src/libexpr/nixexpr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc index 63cbef1dd..00bdbd47a 100644 --- a/src/libexpr/nixexpr.cc +++ b/src/libexpr/nixexpr.cc @@ -105,7 +105,7 @@ void ExprAttrs::show(std::ostream & str) const str << "{ "; for (auto & i : attrs) if (i.second.inherited) - str << "inherit " << i.first << " " << "; "; + str << "inherit " << i.first << "; "; else str << i.first << " = " << *i.second.e << "; "; for (auto & i : dynamicAttrs) @@ -211,7 +211,7 @@ string showAttrPath(const AttrPath & attrPath) if (i.symbol.set()) out << i.symbol; else - out << "\"${" << *i.expr << "}\""; + out << "${" << *i.expr << "}"; } return out.str(); }