Skip to content

Commit 9404539

Browse files
committed
Auto merge of #1278 - alexcrichton:style, r=brson
* Update to rust master * Remove many calls to `.as_slice` (deref coercions) * Remove `get_` prefixes
2 parents 395b7f4 + f2aa5b4 commit 9404539

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1132
-1283
lines changed

Cargo.lock

Lines changed: 67 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bin/bench.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub fn execute(options: Options, config: &Config) -> CliResult<Option<()>> {
6161
jobs: options.flag_jobs,
6262
target: options.flag_target.as_ref().map(|s| s.as_slice()),
6363
dev_deps: true,
64-
features: options.flag_features.as_slice(),
64+
features: &options.flag_features,
6565
no_default_features: options.flag_no_default_features,
6666
spec: options.flag_package.as_ref().map(|s| s.as_slice()),
6767
lib_only: false,
@@ -70,14 +70,14 @@ pub fn execute(options: Options, config: &Config) -> CliResult<Option<()>> {
7070
};
7171

7272
let err = try!(ops::run_benches(&root, &ops,
73-
options.arg_args.as_slice()).map_err(|err| {
73+
&options.arg_args).map_err(|err| {
7474
CliError::from_boxed(err, 101)
7575
}));
7676
match err {
7777
None => Ok(None),
7878
Some(err) => {
7979
Err(match err.exit {
80-
Some(ExitStatus(i)) => CliError::new("", i as u32),
80+
Some(ExitStatus(i)) => CliError::new("", i as i32),
8181
_ => CliError::from_boxed(box Human(err), 101)
8282
})
8383
}

src/bin/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn execute(options: Options, config: &Config) -> CliResult<Option<()>> {
6464
jobs: options.flag_jobs,
6565
target: options.flag_target.as_ref().map(|t| t.as_slice()),
6666
dev_deps: false,
67-
features: options.flag_features.as_slice(),
67+
features: &options.flag_features,
6868
no_default_features: options.flag_no_default_features,
6969
spec: options.flag_package.as_ref().map(|s| s.as_slice()),
7070
lib_only: options.flag_lib,

0 commit comments

Comments
 (0)