]> git.proxmox.com Git - cargo.git/commit
Auto merge of #2853 - matklad:reduce-duplication, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 11 Jul 2016 20:54:22 +0000 (13:54 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Jul 2016 20:54:22 +0000 (13:54 -0700)
commit9f1ffdd69b9fc564431e027a5043b303c7ec3808
treefaa4a6bd5b3a8677d01e0ba501f6c7dd78ee1628
parent7d079dc13bfca872925b1eb355c0bd242adf8d58
parent777200325725bbf2467f4432b88855194cd74580
Auto merge of #2853 - matklad:reduce-duplication, r=alexcrichton

Reduce duplication in `Context` creation

There was some duplicated code for `Context` creation in `cargo_clean` and `cargo_rustc`. I've tried to remove it by moving the common part into `Context::new`. Not sure that this is the right thing to do though, it's just something I came across while tracing `rustc_info` flow.

Additional possible refactoring would be to remove `Default` bound from `BuildConfig`.