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

(synced from e92e980fde)
This commit is contained in:
2020-06-16 00:45:24 -05:00
parent 65e98aca05
commit afcaed4eba
+1 -1
View File
@@ -90,7 +90,7 @@ namespace error {
}
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;
}