From c6ac35a6af7b9c00ba9341ecfff496da86bfab76 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 2 Aug 2020 09:48:07 +0200 Subject: Add `-h` argument Print usage on `-h` and `--help`. Store the usage brief on `Config` in order to be able to print it from multiple places. --- src/suggestion.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/suggestion.rs') diff --git a/src/suggestion.rs b/src/suggestion.rs index fc22a7c..f1684e0 100644 --- a/src/suggestion.rs +++ b/src/suggestion.rs @@ -9,7 +9,7 @@ use crate::arg::is_suggestion_id; use crate::config::Config; -pub fn for_suggestion(config: &Config, f: F) +pub fn for_suggestion(config: &Config<'_>, f: F) where F: Fn(&Suggestion) { for suggestion_arg in &config.suggestions { -- cgit v1.2.3