summaryrefslogtreecommitdiff
path: root/AK/DisjointChunks.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/DisjointChunks.h')
-rw-r--r--AK/DisjointChunks.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/AK/DisjointChunks.h b/AK/DisjointChunks.h
index 596c3f3435..8b6033f945 100644
--- a/AK/DisjointChunks.h
+++ b/AK/DisjointChunks.h
@@ -226,12 +226,10 @@ FixedArray<T> shatter_chunk(FixedArray<T>& source_chunk, size_t start, size_t sl
if constexpr (IsTriviallyConstructible<T>) {
TypedTransfer<T>::move(new_chunk.data(), wanted_slice.data(), wanted_slice.size());
} else {
- // FIXME: propagate errors
- auto copied_chunk = MUST(FixedArray<T>::try_create(wanted_slice));
+ auto copied_chunk = FixedArray<T>::create(wanted_slice).release_value_but_fixme_should_propagate_errors();
new_chunk.swap(copied_chunk);
}
- // FIXME: propagate errors
- auto rest_of_chunk = MUST(FixedArray<T>::try_create(source_chunk.span().slice(start)));
+ auto rest_of_chunk = FixedArray<T>::create(source_chunk.span().slice(start)).release_value_but_fixme_should_propagate_errors();
source_chunk.swap(rest_of_chunk);
return new_chunk;
}