diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-02-08 20:49:58 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-02-08 20:49:58 -0800 |
| commit | de59d5d73775f8ccf948480cbd5d90dc72e1b40f (patch) | |
| tree | 5e7a4b16ffd381ab57b2d78a19dd84086d5f3f9e | |
| parent | 29dece1c8bbebf7ae8034ef0826b119281730937 (diff) | |
| download | rust-de59d5d73775f8ccf948480cbd5d90dc72e1b40f.tar.gz rust-de59d5d73775f8ccf948480cbd5d90dc72e1b40f.zip | |
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`.
| -rw-r--r-- | src/tools/build-manifest/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs index 548a11439f5..eceba7411ac 100644 --- a/src/tools/build-manifest/src/main.rs +++ b/src/tools/build-manifest/src/main.rs @@ -178,8 +178,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(); |
