Skip to content

Commit

Permalink
Use Decodable instead of Decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Feb 10, 2025
1 parent 4ec145b commit 3a97280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/gesticulate.MediaType.scala
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object MediaType:
mt => t"${mt.basic}${mt.parameters.map { p => t"; ${p(0)}=${p(1)}" }.join}"

given MediaType is Encodable in Text = _.show
given Tactic[MediaTypeError] => Decoder[MediaType] = Media.parse(_)
given Tactic[MediaTypeError] => MediaType is Decodable in Text = Media.parse(_)

given formenctype: ("formenctype" is GenericHtmlAttribute[MediaType]):
def name: Text = t"formenctype"
Expand Down

0 comments on commit 3a97280

Please sign in to comment.