Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scalafmt-core to 2.7.5 #856

Merged
merged 3 commits into from
Oct 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 2.7.4
version = 2.7.5
maxColumn = 100
docstrings = JavaDoc
rewrite.rules = [PreferCurlyFors, RedundantBraces]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import cats.syntax.either._
import eu.timepit.refined.api.RefinedTypeOps
import eu.timepit.refined.types.numeric.PosInt

object syntax extends CatsRefinedTypeOpsSyntax with CatsNonEmptyListSyntax with CatsNonEmptyVectorSyntax
object syntax
extends CatsRefinedTypeOpsSyntax
with CatsNonEmptyListSyntax
with CatsNonEmptyVectorSyntax

trait CatsRefinedTypeOpsSyntax {
implicit class CatsRefinedTypeOps[FTP, T](rtOps: RefinedTypeOps[FTP, T]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class SyntaxSpec extends Properties("syntax") {

property("NonEmptyList take (< size)") = secure {
import syntax._
NonEmptyList.of("one", "two", "three").take(PosInt.unsafeFrom(2)) ?= NonEmptyList.of("one", "two")
NonEmptyList.of("one", "two", "three").take(PosInt.unsafeFrom(2)) ?=
NonEmptyList.of("one", "two")
}

property("NonEmptyVector take (== size)") = secure {
Expand All @@ -79,6 +80,7 @@ class SyntaxSpec extends Properties("syntax") {

property("NonEmptyVector take (< size)") = secure {
import syntax._
NonEmptyVector.of("one", "two", "three").take(PosInt.unsafeFrom(2)) ?= NonEmptyVector.of("one", "two")
NonEmptyVector.of("one", "two", "three").take(PosInt.unsafeFrom(2)) ?=
NonEmptyVector.of("one", "two")
}
}