From: Vasudev Kamath Date: Sun, 15 Apr 2018 06:58:29 +0000 (+0530) Subject: Fix typo in cargo search subcommand. X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2^2~1^2~1^2^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9eca01044bc87d87a8055576f1299aeb5d216c04;p=cargo.git Fix typo in cargo search subcommand. Since the search subcommand where typo happened is also used in test fix the typo in test also. Last-Update: 2017-10-29 Gbp-Pq: Name 1002_fix_typo_cargo_search.patch --- diff --git a/src/bin/search.rs b/src/bin/search.rs index 23a656c06..feee24e00 100644 --- a/src/bin/search.rs +++ b/src/bin/search.rs @@ -70,7 +70,7 @@ pub fn execute(options: Options, config: &mut Config) -> CliResult { let msg = "The flag '--host' is no longer valid. Previous versions of Cargo accepted this flag, but it is being -depricated. The flag is being renamed to 'index', as the flag +deprecated. The flag is being renamed to 'index', as the flag wants the location of the index in which to search. Please use '--index' instead. diff --git a/tests/search.rs b/tests/search.rs index 9410ce7e7..b0cde5631 100644 --- a/tests/search.rs +++ b/tests/search.rs @@ -140,7 +140,7 @@ fn simple_with_host() { [WARNING] The flag '--host' is no longer valid. Previous versions of Cargo accepted this flag, but it is being -depricated. The flag is being renamed to 'index', as the flag +deprecated. The flag is being renamed to 'index', as the flag wants the location of the index in which to search. Please use '--index' instead. @@ -207,7 +207,7 @@ fn simple_with_index_and_host() { [WARNING] The flag '--host' is no longer valid. Previous versions of Cargo accepted this flag, but it is being -depricated. The flag is being renamed to 'index', as the flag +deprecated. The flag is being renamed to 'index', as the flag wants the location of the index in which to search. Please use '--index' instead.