Kernel: Use HashMap::try_ensure_capacity

This commit is contained in:
Thomas Queiroz 2022-12-06 03:15:46 -03:00 committed by Andreas Kling
parent 7c82713ecb
commit 0380ff30aa

View file

@ -81,7 +81,7 @@ UNMAP_AFTER_INIT CommandLine::CommandLine(StringView cmdline_from_bootloader)
{
s_the = this;
auto const& args = m_string->view().split_view(' ');
m_params.ensure_capacity(args.size());
MUST(m_params.try_ensure_capacity(args.size()));
add_arguments(args);
}