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:
parent
244516142a
commit
0b83717ea2
17 changed files with 142 additions and 142 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue