summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarpenter, Adam (CORP) <adam.carpenter@adp.com>2021-12-01 13:25:56 -0500
committerCarpenter, Adam (CORP) <adam.carpenter@adp.com>2021-12-01 13:25:56 -0500
commit3153c560152f433205a9875ceb232626996c0a1a (patch)
tree7b9907b779945b0024d224c7f093f6edcfdd1c48
parent37c5cdff434e86778977a7d7fd00d80b71fcf363 (diff)
downloadaltruistic-angelshark-3153c560152f433205a9875ceb232626996c0a1a.tar.xz
altruistic-angelshark-3153c560152f433205a9875ceb232626996c0a1a.zip
chore: remove unused var warning with no angelsharkd extensions
-rw-r--r--angelsharkd/src/routes/extensions/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/angelsharkd/src/routes/extensions/mod.rs b/angelsharkd/src/routes/extensions/mod.rs
index 7f217d6..cada47f 100644
--- a/angelsharkd/src/routes/extensions/mod.rs
+++ b/angelsharkd/src/routes/extensions/mod.rs
@@ -8,7 +8,7 @@ mod simple_search;
/// The extension filter; consists of all compiled optional Angelshark extension
/// filters combined under `/extensions`.
-pub fn filter(config: &Config) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone {
+pub fn filter(_config: &Config) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone {
// Note: this next line deals with the common edge case of having no
// extensions loaded with feature flags. It ensures that the the type
// checking is right when the return `.and()` is called below.
@@ -17,7 +17,7 @@ pub fn filter(config: &Config) -> impl Filter<Extract = impl Reply, Error = Reje
// Block to enable simple_search extension feature. Instantiates a
// searchable haystack and configures filters to handle search requests.
#[cfg(feature = "simple_search")]
- let haystack = simple_search::Haystack::new(config.runner.clone());
+ let haystack = simple_search::Haystack::new(_config.runner.clone());
#[cfg(feature = "simple_search")]
let filters = filters
.or(simple_search::search_filter(haystack.clone()))