diff --git a/deps/ox/src/ox/std/error.hpp b/deps/ox/src/ox/std/error.hpp index 2eb3cbc9..ecfbec13 100644 --- a/deps/ox/src/ox/std/error.hpp +++ b/deps/ox/src/ox/std/error.hpp @@ -167,28 +167,28 @@ struct [[nodiscard]] Result { constexpr Error copyTo(type &val) const & noexcept { if (!error) [[likely]] { - *val = value; + val = value; } return error; } constexpr Error copyTo(type &val) const && noexcept { if (!error) [[likely]] { - *val = value; + val = value; } return error; } constexpr Error copyTo(type &val) & noexcept { if (!error) [[likely]] { - *val = value; + val = value; } return error; } constexpr Error copyTo(type &val) && noexcept { if (!error) [[likely]] { - *val = std::move(value); + val = std::move(value); } return error; }