diff options
author | Valentin Gagarin <valentin.gagarin@tweag.io> | 2023-01-12 13:23:32 +0100 |
---|---|---|
committer | Valentin Gagarin <valentin.gagarin@tweag.io> | 2023-01-12 13:23:32 +0100 |
commit | 48b2a3a0d03d524a0c1048e7a74acdead11a57b4 (patch) | |
tree | 50895e2e0b59a96d13ae74df1c127c9dcbae8941 /src | |
parent | a3ba80357d3a792eb1690011f253c64840c6ae72 (diff) |
remove unncessary cast
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/path-with-outputs.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/path-with-outputs.cc b/src/libstore/path-with-outputs.cc index 17230ffc4..eae5553c5 100644 --- a/src/libstore/path-with-outputs.cc +++ b/src/libstore/path-with-outputs.cc @@ -52,8 +52,8 @@ std::pair<std::string_view, StringSet> parsePathWithOutputs(std::string_view s) size_t n = s.find("!"); return n == s.npos ? std::make_pair(s, std::set<std::string>()) - : std::make_pair(((std::string_view) s).substr(0, n), - tokenizeString<std::set<std::string>>(((std::string_view) s).substr(n + 1), ",")); + : std::make_pair(s.substr(0, n), + tokenizeString<std::set<std::string>>(s.substr(n + 1), ",")); } |