Эх сурвалжийг харах

Fix compiler output section in solang.toml (#1441)

The compiler output section was not deserealized correctly from the
`solang.toml` file created by `solang new`. this adds a fix for this.

---------

Signed-off-by: salaheldinsoliman <salaheldin_sameh@aucegypt.edu>
salaheldinsoliman 2 жил өмнө
parent
commit
2576f711a4
1 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  1. 4 1
      src/bin/cli/mod.rs

+ 4 - 1
src/bin/cli/mod.rs

@@ -108,7 +108,10 @@ pub struct Compile {
     pub package: CompilePackage,
 
     #[clap(flatten)]
-    #[serde(default = "CompilerOutput::default")]
+    #[serde(
+        default = "CompilerOutput::default",
+        rename(deserialize = "compiler-output")
+    )]
     pub compiler_output: CompilerOutput,
 
     #[clap(flatten)]