mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
AK: Use Deducing this for OptionalBase
This is taken from and akin to https://github.com/SerenityOS/serenity/pull/25894
This commit is contained in:
parent
fd4888e800
commit
bcd01da91d
Notes:
github-actions[bot]
2025-11-20 15:28:30 +00:00
Author: https://github.com/Hendiadyoin1
Commit: bcd01da91d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6782
12 changed files with 81 additions and 94 deletions
|
|
@ -1229,7 +1229,7 @@ Optional<Rule> Parser::parse_a_rule(TokenStream<T>& input)
|
|||
// Otherwise, if the next token from input is an <at-keyword-token>,
|
||||
// consume an at-rule from input, and let rule be the return value.
|
||||
else if (input.next_token().is(Token::Type::AtKeyword)) {
|
||||
rule = consume_an_at_rule(m_token_stream).map([](auto& it) { return Rule { it }; });
|
||||
rule = consume_an_at_rule(m_token_stream).map([](auto&& it) { return Rule { it }; });
|
||||
}
|
||||
// Otherwise, consume a qualified rule from input and let rule be the return value.
|
||||
// If nothing or an invalid rule error was returned, return a syntax error.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue