Skip to content

Commit 4269e52

Browse files
authored
Rollup merge of #39676 - alexcrichton:fix-again, r=brson
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`.
2 parents bf75089 + de59d5d commit 4269e52

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

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

0 commit comments

Comments
 (0)