1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 01:57:35 +00:00

LibWasm: Remove uses of AK::Result

Closes #23500.
This commit is contained in:
Ali Mohammad Pur 2024-03-11 22:57:59 +01:00 committed by Ali Mohammad Pur
parent 8003bde03d
commit 5a40ce442b
6 changed files with 14 additions and 14 deletions

View file

@ -28,7 +28,7 @@ static auto parse_vector(Stream& stream)
{
ScopeLogger<WASM_BINPARSER_DEBUG> logger;
if constexpr (requires { T::parse(stream); }) {
using ResultT = typename decltype(T::parse(stream))::ValueType;
using ResultT = typename decltype(T::parse(stream))::ResultType;
auto count_or_error = stream.read_value<LEB128<size_t>>();
if (count_or_error.is_error())
return ParseResult<Vector<ResultT>> { with_eof_check(stream, ParseError::ExpectedSize) };