diff --git a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/RustSG.scala b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/RustSG.scala index 560f93c76..59eb7528a 100644 --- a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/RustSG.scala +++ b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/RustSG.scala @@ -10,7 +10,7 @@ import _root_.io.kaitai.struct.translators.RustTranslator class RustSG(spec: TestSpec, provider: ClassTypeProvider) extends BaseGenerator(spec) { val className = RustCompiler.type2class(spec.id) - val translator = new RustTranslator(provider, RuntimeConfig()) + val translator = new RustTranslator(provider, importList, RuntimeConfig()) override def fileName(name: String): String = s"test_$name.rs"