1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 16:51:15 +02:00

return string_view from printHashType rather than string

This commit is contained in:
Vaci Koblizek 2023-03-29 10:44:22 +01:00
parent 957f832074
commit ccf7ce26fe
2 changed files with 2 additions and 2 deletions

View file

@ -403,7 +403,7 @@ HashType parseHashType(std::string_view s)
throw UsageError("unknown hash algorithm '%1%'", s);
}
std::string printHashType(HashType ht)
std::string_view printHashType(HashType ht)
{
switch (ht) {
case htMD5: return "md5";