Permalink
Browse files

Run scalafmt for 2.13.0-M4

  • Loading branch information...
travisbrown committed Nov 6, 2018
1 parent fc357aa commit 686bb1043ec5b3250c63f059fa978f9560dd24a8
@@ -5,12 +5,14 @@ import scala.collection.{ Factory, Map }
import scala.collection.mutable.Builder
private[circe] trait CollectionDecoders {
/**
* @note The resulting instance will not be serializable (in the `java.io.Serializable` sense)
* unless the provided [[scala.collection.Factory]] is serializable.
* @group Collection
*/
implicit final def decodeMapLike[K, V, M[K, V] <: Map[K, V]](implicit
implicit final def decodeMapLike[K, V, M[K, V] <: Map[K, V]](
implicit
decodeK: KeyDecoder[K],
decodeV: Decoder[V],
factory: Factory[(K, V), M[K, V]]
@@ -23,7 +25,8 @@ private[circe] trait CollectionDecoders {
* unless the provided [[scala.collection.Factory]] is serializable.
* @group Collection
*/
implicit final def decodeIterable[A, C[A] <: Iterable[A]](implicit
implicit final def decodeIterable[A, C[A] <: Iterable[A]](
implicit
decodeA: Decoder[A],
factory: Factory[A, C[A]]
): Decoder[C[A]] = new SeqDecoder[A, C](decodeA) {
@@ -33,7 +36,8 @@ private[circe] trait CollectionDecoders {
/**
* @group Collection
*/
implicit final def decodeArray[A](implicit
implicit final def decodeArray[A](
implicit
decodeA: Decoder[A],
factory: Factory[A, Array[A]]
): Decoder[Array[A]] = new SeqDecoder[A, Array](decodeA) {
@@ -45,7 +49,8 @@ private[circe] trait CollectionDecoders {
* unless the provided [[scala.collection.Factory]] is serializable.
* @group Collection
*/
implicit final def decodeOneAnd[A, C[_]](implicit
implicit final def decodeOneAnd[A, C[_]](
implicit
decodeA: Decoder[A],
factory: Factory[A, C[A]]
): Decoder[OneAnd[C, A]] = new NonEmptySeqDecoder[A, C, OneAnd[C, A]](decodeA) {
@@ -5,6 +5,7 @@ import scala.collection.mutable.{ ArrayBuffer, ArrayBuilder, Builder }
import scala.reflect.ClassTag
trait ArrayFactoryInstance {
/**
* We need serializable `Factory` instances for arrays for our `Array` codec tests.
*/
@@ -16,6 +17,7 @@ trait ArrayFactoryInstance {
}
trait StreamFactoryInstance {
/**
* We need serializable `Factory` instances for streams for our `NonEmptyStream` codec tests.
*/

0 comments on commit 686bb10

Please sign in to comment.