aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/Annotations.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/firrtl/Annotations.scala')
-rw-r--r--src/main/scala/firrtl/Annotations.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/scala/firrtl/Annotations.scala b/src/main/scala/firrtl/Annotations.scala
index 173006ab..a529d6f1 100644
--- a/src/main/scala/firrtl/Annotations.scala
+++ b/src/main/scala/firrtl/Annotations.scala
@@ -81,7 +81,7 @@ object Annotations {
trait Rigid extends Permissibility {
def check(from: Named, tos: Seq[Named], which: Annotation): Unit = tos.size match {
case 0 => throw new AnnotationException(s"Cannot remove the rigid annotation ${which.serialize} on ${from.name}")
- case 1 => {}
+ case 1 =>
case _ => throw new AnnotationException(s"Cannot expand a rigid annotation on ${from.name} -> ${tos.map(_.name)}")
}
}
@@ -92,7 +92,7 @@ object Annotations {
trait Firm extends Permissibility {
def check(from: Named, tos: Seq[Named], which: Annotation): Unit = tos.size match {
case 0 => throw new AnnotationException(s"Cannot remove the firm annotation ${which.serialize} on ${from.name}")
- case _ => {}
+ case _ =>
}
}
@@ -163,7 +163,7 @@ object Annotations {
def serialize: String = this.toString
def update(tos: Seq[Named]): Seq[Annotation] = {
check(target, tos, this)
- propagate(target, tos, duplicate _)
+ propagate(target, tos, duplicate)
}
}
@@ -177,7 +177,7 @@ object Annotations {
val (namedMap: NamedMap, idMap:IDMap) =
//annotations.foldLeft(Tuple2[NamedMap, IDMap](Map.empty, Map.empty)){
annotations.foldLeft((Map.empty: NamedMap, Map.empty: IDMap)){
- (partialMaps: Tuple2[NamedMap, IDMap], annotation: Annotation) => {
+ (partialMaps: (NamedMap, IDMap), annotation: Annotation) => {
val tIDToAnn = partialMaps._1.getOrElse(annotation.target, Map.empty)
val pNMap = partialMaps._1 + (annotation.target -> (tIDToAnn + (annotation.tID -> annotation)))