From 9eca01044bc87d87a8055576f1299aeb5d216c04 Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Sun, 15 Apr 2018 12:28:29 +0530 Subject: [PATCH] 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 --- src/bin/search.rs | 2 +- tests/search.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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. -- 2.30.2