diff --git a/util/env_windows.cc b/util/env_windows.cc index 0a48c3fb5..125b82f6f 100644 --- a/util/env_windows.cc +++ b/util/env_windows.cc @@ -81,10 +81,7 @@ class ScopedHandle { ScopedHandle& operator=(const ScopedHandle&) = delete; - ScopedHandle& operator=(ScopedHandle&& rhs) noexcept { - if (this != &rhs) handle_ = rhs.Release(); - return *this; - } + ScopedHandle& operator=(ScopedHandle&& rhs) = delete; bool Close() { if (!is_valid()) {