diff options
author | pennae <github@quasiparticle.net> | 2022-01-21 17:55:51 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-01-27 17:15:43 +0100 |
commit | 0d7fae6a574ec1b6758a7e6d8e639145c1c465a9 (patch) | |
tree | fda5ab069729b9a078ca8e220d42d56515c988ec /src/libstore/parsed-derivations.cc | |
parent | 558c4ee3e370c9f9a6ea293df54ed6914a999f1c (diff) |
convert a for more utilities to string_view
Diffstat (limited to 'src/libstore/parsed-derivations.cc')
-rw-r--r-- | src/libstore/parsed-derivations.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/parsed-derivations.cc b/src/libstore/parsed-derivations.cc index caddba9b1..8c65053e4 100644 --- a/src/libstore/parsed-derivations.cc +++ b/src/libstore/parsed-derivations.cc @@ -170,7 +170,7 @@ std::string writeStructuredAttrsShell(const nlohmann::json & json) auto handleSimpleType = [](const nlohmann::json & value) -> std::optional<std::string> { if (value.is_string()) - return shellEscape(value); + return shellEscape(value.get<std::string_view>()); if (value.is_number()) { auto f = value.get<float>(); |