From 0042c50301d2e959e9e7487f0f4ab37cef245979 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 16 Dec 2024 13:34:26 +0100 Subject: Remove unnecessary moves --- src/buildtool/execution_api/utils/rehash_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/utils/rehash_utils.cpp') diff --git a/src/buildtool/execution_api/utils/rehash_utils.cpp b/src/buildtool/execution_api/utils/rehash_utils.cpp index ec4edf99..9e64a546 100644 --- a/src/buildtool/execution_api/utils/rehash_utils.cpp +++ b/src/buildtool/execution_api/utils/rehash_utils.cpp @@ -93,8 +93,8 @@ auto ReadRehashedDigest(ArtifactDigest const& digest, } } } - return std::move(compat_obj); // not dereferenced to assist type - // deduction in variant + return compat_obj; // not dereferenced to assist type deduction in + // variant } // no mapping file found return std::optional{std::nullopt}; -- cgit v1.2.3