aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/proto
diff options
context:
space:
mode:
authorKevin Laeufer2020-07-28 13:03:23 -0700
committerKevin Laeufer2020-07-29 15:26:30 -0700
commit0c78144a330d2394afd6a8e4579fb0f27fd8424c (patch)
tree80005026999dab9361a29de1337d68d8da926968 /src/main/scala/firrtl/proto
parent990f79a7ddda80404eb575c43f89da8c06669bd9 (diff)
[2.13] use scala.collection.Seq instead of mutable.Seq
Diffstat (limited to 'src/main/scala/firrtl/proto')
-rw-r--r--src/main/scala/firrtl/proto/FromProto.scala8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/scala/firrtl/proto/FromProto.scala b/src/main/scala/firrtl/proto/FromProto.scala
index dced9c2d..41a7e1de 100644
--- a/src/main/scala/firrtl/proto/FromProto.scala
+++ b/src/main/scala/firrtl/proto/FromProto.scala
@@ -10,8 +10,6 @@ import FirrtlProtos._
import com.google.protobuf.CodedInputStream
import Firrtl.Statement.{Formal, ReadUnderWrite}
-import scala.collection.mutable
-
object FromProto {
/** Deserialize ProtoBuf representation of [[ir.Circuit]]
@@ -36,9 +34,9 @@ object FromProto {
}
// Convert from ProtoBuf message repeated Statements to FIRRRTL Block
- private def compressStmts(stmts: mutable.Seq[ir.Statement]): ir.Statement = stmts match {
- case mutable.Seq() => ir.EmptyStmt
- case mutable.Seq(stmt) => stmt
+ private def compressStmts(stmts: scala.collection.Seq[ir.Statement]): ir.Statement = stmts match {
+ case scala.collection.Seq() => ir.EmptyStmt
+ case scala.collection.Seq(stmt) => stmt
case multiple => ir.Block(multiple.toSeq)
}