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`.
This commit is contained in:
commit
4269e5207e
1 changed files with 2 additions and 2 deletions
|
|
@ -179,8 +179,8 @@ impl Builder {
|
|||
// and wrap it up in a `Value::Table`.
|
||||
let mut manifest = BTreeMap::new();
|
||||
manifest.insert("manifest-version".to_string(),
|
||||
toml::encode(&manifest_version));
|
||||
manifest.insert("date".to_string(), toml::encode(&date));
|
||||
toml::Value::String(manifest_version));
|
||||
manifest.insert("date".to_string(), toml::Value::String(date));
|
||||
manifest.insert("pkg".to_string(), toml::encode(&pkg));
|
||||
let manifest = toml::Value::Table(manifest).to_string();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue