Skip to content

Commit

Permalink
add explicit return types (twitter#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
sritchie authored Dec 3, 2016
1 parent 25d6ebc commit bac212a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ case class AveragedValue(count: Long, value: Double) {
* [[AveragedValue]] instances.
*/
object AveragedValue {
/** implicit instance of [[Group]][AveragedValue] */
implicit val group = AveragedGroup
implicit val group: Group[AveragedValue] = AveragedGroup

/**
* Returns an [[Aggregator]] that uses [[AveragedValue]] to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ case class Moments(m0: Long, m1: Double, m2: Double, m3: Double, m4: Double) {
}

object Moments {
implicit val group = MomentsGroup
implicit val group: Group[Moments] = MomentsGroup
val aggregator = MomentsAggregator

def numericAggregator[N](implicit num: Numeric[N]): MonoidAggregator[N, Moments, Moments] =
Expand Down

0 comments on commit bac212a

Please sign in to comment.