From 48e4130e825de244592d7cf0631d3b0552d42ef1 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 2 Aug 2020 10:43:54 +0200 Subject: Move suggestion arguments check to `Config::get` Since this check for suggestion arguments is in both binaries, we can move it to the common preflight function. Clean up other areas now that we moved the function. --- 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 f1684e0..fc22a7c 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