[ox/std] Change toError(ox::ValErr<T>) to toError(const ox::ValErr<T>&)

This commit is contained in:
Gary Talent 2020-06-16 00:45:24 -05:00
parent 71b6c72c46
commit e92e980fde

View File

@ -90,7 +90,7 @@ namespace error {
} }
template<typename T> template<typename T>
[[nodiscard]] constexpr ox::Error toError(ox::ValErr<T> ve) noexcept { [[nodiscard]] constexpr ox::Error toError(const ox::ValErr<T> &ve) noexcept {
return ve.error; return ve.error;
} }