Skip to content

Commit

Permalink
fix 2.13 build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyPlane committed Oct 13, 2023
1 parent 0d64c20 commit e6881ce
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1013,15 +1013,16 @@ private[grpc] object HttpTranscoding {
capture(ident) + '.'
}
def fieldPath = rule {
fieldPathRule ~> FieldPath.apply
fieldPathRule ~> ((strs: Seq[String]) => FieldPath.apply(strs))
}

def literalSegment = rule {
literal ~> LiteralSegment.apply
literal ~> ((str: String) => LiteralSegment.apply(str))
}

def variable: Rule1[VariableSegment] = rule {
('{' ~ (fieldPath ~ optional('=' ~ varSegments)) ~ '}') ~> VariableSegment.apply
('{' ~ (fieldPath ~ optional('=' ~ varSegments)) ~ '}') ~> (
(fieldPath: FieldPath, template: Option[Seq[Segment]]) => VariableSegment.apply(fieldPath, template))
}

def singleSegmentMatcher = rule {
Expand Down Expand Up @@ -1058,7 +1059,7 @@ private[grpc] object HttpTranscoding {
('/' | fail("Template must start with a slash")) ~ segments ~ optional(verb) ~ EOI
}
def template: Rule1[Template] = rule {
templateRule ~> Template.apply
templateRule ~> ((segments: Seq[Segment], verb: Option[String]) => Template.apply(segments, verb))
}

}
Expand Down

0 comments on commit e6881ce

Please sign in to comment.