aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/content-address.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/content-address.cc')
-rw-r--r--src/libstore/content-address.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc
index bf56d3d77..74215c545 100644
--- a/src/libstore/content-address.cc
+++ b/src/libstore/content-address.cc
@@ -52,7 +52,7 @@ std::string renderContentAddressMethod(ContentAddressMethod cam) {
Parses content address strings up to the hash.
*/
static ContentAddressMethod parseContentAddressMethodPrefix(std::string_view & rest) {
- std::string wholeInput(rest);
+ std::string_view wholeInput { rest };
std::string_view prefix;
{