Fix unused lambda captures
This commit is contained in:
parent
20c183b7cd
commit
6bb63f549f
2 changed files with 3 additions and 3 deletions
|
|
@ -80,7 +80,7 @@ class TransitionBuilder {
|
|||
public:
|
||||
void apply(const Rule &rule) {
|
||||
rule.match(
|
||||
[this](const rules::Blank &) {},
|
||||
[](const rules::Blank &) {},
|
||||
|
||||
[this](const rules::CharacterSet &character_set) {
|
||||
PrecedenceRange precedence;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class SymbolReplacer {
|
|||
|
||||
Rule apply(const Rule &rule) {
|
||||
return rule.match(
|
||||
[this](const rules::Blank &blank) -> Rule {
|
||||
[](const rules::Blank &blank) -> Rule {
|
||||
return blank;
|
||||
},
|
||||
|
||||
|
|
@ -110,7 +110,7 @@ class TokenExtractor {
|
|||
public:
|
||||
Rule apply(const rules::Rule &rule) {
|
||||
return rule.match(
|
||||
[this](const rules::Blank &blank) -> Rule { return blank; },
|
||||
[](const rules::Blank &blank) -> Rule { return blank; },
|
||||
|
||||
[this](const rules::Metadata &rule) -> Rule {
|
||||
if (rule.params.is_token) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue