mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
parseContentAddressMethodPrefix: use string_view
Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
parent
8279178b07
commit
fbf509c113
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue