Skip to content

Commit f578ee5

Browse files
authored
Auto merge of #2915 - matklad:rename-shell, r=alexcrichton
Minor, rename function parameter Naming `Config` as `shell` (while having a `shell` function in scope which returns `MultiShell`) inside this not so trivial callback driven fragment of code is devilishly evil :)
2 parents c547d97 + 736fc7a commit f578ee5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ pub fn execute_main_without_stdin<T, V>(
5454
usage: &str)
5555
where V: Encodable, T: Decodable
5656
{
57-
process::<V, _>(|rest, shell| {
58-
call_main_without_stdin(exec, shell, usage, rest, options_first)
57+
process::<V, _>(|rest, config| {
58+
call_main_without_stdin(exec, config, usage, rest, options_first)
5959
});
6060
}
6161

6262
pub fn call_main_without_stdin<T, V>(
6363
exec: fn(T, &Config) -> CliResult<Option<V>>,
64-
shell: &Config,
64+
config: &Config,
6565
usage: &str,
6666
args: &[String],
6767
options_first: bool) -> CliResult<Option<V>>
6868
where V: Encodable, T: Decodable
6969
{
7070
let flags = try!(flags_from_args::<T>(usage, args, options_first));
71-
exec(flags, shell)
71+
exec(flags, config)
7272
}
7373

7474
fn process<V, F>(mut callback: F)

0 commit comments

Comments
 (0)