Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejSpanel committed Sep 16, 2024
1 parent 7a0c9ae commit 7e7f675
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.github.opengrabeso.formulafx.core
sealed trait Format {
def score: Int

def combine(that: Format) = if (that.score >= score) that else this
infix def combine(that: Format): Format = if (that.score >= score) that else this
}

object Format {
Expand All @@ -26,7 +26,9 @@ object Format {

}

import Format._
import Format.*

import scala.annotation.tailrec

object Number {
def fractionString(x: Double, maxLen: Int): NumberPart = {
Expand Down Expand Up @@ -73,6 +75,7 @@ object Number {

def doCarry: NumberByParts = {

@tailrec
def carry(todo: List[NumberPart], isCarry: Boolean, done: List[NumberPart]): List[NumberPart] = {
todo match {
case Nil => done
Expand Down

0 comments on commit 7e7f675

Please sign in to comment.