Drawable Renderer (#1570), [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-05-11 19:18:36 +00:00
committed by Bart Louwers
parent 81461bc357
commit 0b7555f473

View File

@@ -17,7 +17,7 @@ MBGL_CONSTEXPR std::array<To, Size> convert(const std::array<From, Size>& from)
template <typename To, typename From, std::size_t Size, typename = std::enable_if_t<std::is_assignable_v<To&, From>>>
MBGL_CONSTEXPR std::array<To, Size> cast(const std::array<From, Size>& from) {
std::array<To, Size> to{{}};
std::transform(std::begin(from), std::end(from), std::begin(to), [](From x){ return static_cast<To>(x); });
std::transform(std::begin(from), std::end(from), std::begin(to), [](From x) { return static_cast<To>(x); });
return to;
}