diff options
Diffstat (limited to 'src/main/scala/cc/spray/json/package.scala')
-rw-r--r-- | src/main/scala/cc/spray/json/package.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/scala/cc/spray/json/package.scala b/src/main/scala/cc/spray/json/package.scala index a5daedb..ee50ec0 100644 --- a/src/main/scala/cc/spray/json/package.scala +++ b/src/main/scala/cc/spray/json/package.scala @@ -21,12 +21,12 @@ package object json { def jsonReader[T](implicit reader: JsonReader[T]) = reader def jsonWriter[T](implicit writer: JsonWriter[T]) = writer - implicit def pimpAny[T :JsonWriter](any: T): PimpedAny[T] = new PimpedAny(any, jsonWriter) - + implicit def pimpAny[T](any: T): PimpedAny[T] = new PimpedAny(any) + } package json { - private[json] class PimpedAny[T](any: T, writer: JsonWriter[T]) { - def toJson: JsValue = writer.write(any) + private[json] class PimpedAny[T](any: T) { + def toJson(implicit writer: JsonWriter[T]): JsValue = writer.write(any) } }
\ No newline at end of file |