From 626a93b348e27d2372edd5346bf68a42f010261f Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 27 Mar 2023 18:18:01 +0200 Subject: [PATCH] Search example: panic when missing the index path --- milli/examples/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/examples/search.rs b/milli/examples/search.rs index ecc7f9cb8..30ce5eca7 100644 --- a/milli/examples/search.rs +++ b/milli/examples/search.rs @@ -14,7 +14,7 @@ fn main() -> Result<(), Box> { let mut args = std::env::args(); let program_name = args.next().expect("No program name"); let dataset = args.next().unwrap_or_else(|| { - format!( + panic!( "Missing path to index. Usage: {} [] [print-documents]", program_name )