=htp add explicit result types to formField/parameter implicits
Otherwise, the applicability of the implicit conversions can depend on the order of compiler-internal loading/typing which is hardly predictable.
This commit is contained in:
parent
edab520787
commit
c417d727da
4 changed files with 31 additions and 36 deletions
|
|
@ -9,9 +9,6 @@ import akka.http.scaladsl.server.Route
|
|||
import akka.http.scaladsl.model._
|
||||
|
||||
class FormFieldDirectivesExamplesSpec extends RoutingSpec {
|
||||
// FIXME: investigate why it doesn't work without this import
|
||||
import akka.http.scaladsl.server.directives.FormFieldDirectives.FieldMagnet
|
||||
|
||||
"formFields" in {
|
||||
val route =
|
||||
formFields('color, 'age.as[Int]) { (color, age) =>
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@ import akka.http.scaladsl.model._
|
|||
import akka.http.scaladsl.server.Route
|
||||
|
||||
class ParameterDirectivesExamplesSpec extends RoutingSpec {
|
||||
// FIXME: investigate why it doesn't work without this import
|
||||
import akka.http.scaladsl.server.directives.ParameterDirectives.ParamMagnet
|
||||
|
||||
"example-1" in {
|
||||
val route =
|
||||
parameter('color) { color =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue