Skip to content

Commit

Permalink
Rollup merge of rust-lang#58113 - h-michael:build-manifest-2018, r=al…
Browse files Browse the repository at this point in the history
…excrichton

Transition build-manifest to 2018 edition

rust-lang#58099
  • Loading branch information
kennytm authored Feb 5, 2019
2 parents c4af395 + 47a587f commit b9def8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/tools/build-manifest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
name = "build-manifest"
version = "0.1.0"
authors = ["Alex Crichton <[email protected]>"]
edition = "2018"

[dependencies]
toml = "0.4"
serde = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0"
9 changes: 5 additions & 4 deletions src/tools/build-manifest/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
extern crate toml;
#[macro_use]
extern crate serde_derive;
#![deny(rust_2018_idioms)]

use toml;
use serde::Serialize;

use std::collections::BTreeMap;
use std::env;
Expand Down Expand Up @@ -469,7 +470,7 @@ impl Builder {
}
manifest.pkg.insert("rust".to_string(), pkg);

return manifest;
manifest
}

fn profile(&mut self,
Expand Down

0 comments on commit b9def8e

Please sign in to comment.