aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/options/package.scala
diff options
context:
space:
mode:
authorchick2020-08-14 19:47:53 -0700
committerJack Koenig2020-08-14 19:47:53 -0700
commit6fc742bfaf5ee508a34189400a1a7dbffe3f1cac (patch)
tree2ed103ee80b0fba613c88a66af854ae9952610ce /src/main/scala/firrtl/options/package.scala
parentb516293f703c4de86397862fee1897aded2ae140 (diff)
All of src/ formatted with scalafmt
Diffstat (limited to 'src/main/scala/firrtl/options/package.scala')
-rw-r--r--src/main/scala/firrtl/options/package.scala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/scala/firrtl/options/package.scala b/src/main/scala/firrtl/options/package.scala
index 8cf2875b..f87fb8a8 100644
--- a/src/main/scala/firrtl/options/package.scala
+++ b/src/main/scala/firrtl/options/package.scala
@@ -5,17 +5,16 @@ package firrtl
package object options {
implicit object StageOptionsView extends OptionsView[StageOptions] {
- def view(options: AnnotationSeq): StageOptions = options
- .collect { case a: StageOption => a }
+ def view(options: AnnotationSeq): StageOptions = options.collect { case a: StageOption => a }
.foldLeft(new StageOptions())((c, x) =>
x match {
case TargetDirAnnotation(a) => c.copy(targetDir = a)
/* Insert input files at the head of the Seq for speed and because order shouldn't matter */
- case InputAnnotationFileAnnotation(a) => c.copy(annotationFilesIn = a +: c.annotationFilesIn)
+ case InputAnnotationFileAnnotation(a) => c.copy(annotationFilesIn = a +: c.annotationFilesIn)
case OutputAnnotationFileAnnotation(a) => c.copy(annotationFileOut = Some(a))
/* Do NOT reorder program args. The order may matter. */
case ProgramArgsAnnotation(a) => c.copy(programArgs = c.programArgs :+ a)
- case WriteDeletedAnnotation => c.copy(writeDeleted = true)
+ case WriteDeletedAnnotation => c.copy(writeDeleted = true)
}
)
}