From: Vasudev Kamath Date: Sat, 27 Jan 2018 09:41:06 +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^2^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=63a3b14a64ba92d5d25d637d666d5e82d9f44562;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 70b38ecfb..c30afc11a 100644 --- a/src/bin/search.rs +++ b/src/bin/search.rs @@ -69,7 +69,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.