1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

AK: Make SourceGenerator::fork() infallible

This commit is contained in:
Andreas Kling 2023-08-21 16:42:48 +02:00
parent 244516142a
commit 0b83717ea2
17 changed files with 142 additions and 142 deletions

View file

@ -39,9 +39,9 @@ public:
// Move-assign is undefinable due to 'StringBuilder& m_builder;'
SourceGenerator& operator=(SourceGenerator&&) = delete;
ErrorOr<SourceGenerator> fork()
[[nodiscard]] SourceGenerator fork()
{
return SourceGenerator { m_builder, TRY(m_mapping.clone()), m_opening, m_closing };
return SourceGenerator { m_builder, MUST(m_mapping.clone()), m_opening, m_closing };
}
void set(StringView key, String value)