Skip to content

Commit 78c2148

Browse files
committed
Actually fix manifest generation
The previous fix contained an error where `toml::encode` returned a runtime error, so this version just constructs a literal `toml::Value`.
1 parent 42b26e6 commit 78c2148

File tree

1 file changed

+2
-2
lines changed
  • src/tools/build-manifest/src

1 file changed

+2
-2
lines changed

src/tools/build-manifest/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ impl Builder {
178178
// and wrap it up in a `Value::Table`.
179179
let mut manifest = BTreeMap::new();
180180
manifest.insert("manifest-version".to_string(),
181-
toml::encode(&manifest_version));
182-
manifest.insert("date".to_string(), toml::encode(&date));
181+
toml::Value::String(manifest_version));
182+
manifest.insert("date".to_string(), toml::Value::String(date));
183183
manifest.insert("pkg".to_string(), toml::encode(&pkg));
184184
let manifest = toml::Value::Table(manifest).to_string();
185185

0 commit comments

Comments
 (0)