From b9a787954e9298be39134d6b142a630a135725c1 Mon Sep 17 00:00:00 2001 From: Hannes Herrmann Date: Mon, 26 Aug 2024 01:41:22 +0200 Subject: [PATCH] fix(introspection_cache): fix feature guard import --- src/rocket/introspection/config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rocket/introspection/config.rs b/src/rocket/introspection/config.rs index 476207bc..9dff39ff 100644 --- a/src/rocket/introspection/config.rs +++ b/src/rocket/introspection/config.rs @@ -1,6 +1,8 @@ use openidconnect::IntrospectionUrl; -use crate::oidc::introspection::{cache::IntrospectionCache, AuthorityAuthentication}; +#[cfg(feature = "introspection_cache")] +use crate::oidc::introspection::cache::IntrospectionCache; +use crate::oidc::introspection::AuthorityAuthentication; /// Configuration that must be injected into /// [the managed global state](https://rocket.rs/v0.5-rc/guide/state/#managed-state) of the