diff options
author | Teddy Wing | 2020-08-02 10:43:54 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-02 10:43:54 +0200 |
commit | 48e4130e825de244592d7cf0631d3b0552d42ef1 (patch) | |
tree | e6d2a5b5fba0bdf4b6a9cb406c7b6f00679575f1 /src/suggestion.rs | |
parent | 20e98432afb02262703a2bd4524e6a87f3145086 (diff) | |
download | git-suggestion-48e4130e825de244592d7cf0631d3b0552d42ef1.tar.bz2 |
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.
Diffstat (limited to 'src/suggestion.rs')
-rw-r--r-- | src/suggestion.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<F>(config: &Config<'_>, f: F) +pub fn for_suggestion<F>(config: &Config, f: F) where F: Fn(&Suggestion) { for suggestion_arg in &config.suggestions { |