rest-server/router: ignore type complexity clippy lint

the `type_complexity` clippy lint [1] is intended to make the code
more legible in most cases. however, the lint triggers on a member of
a private enum, an example minimal rest server and a private static
variable here. so the benefits of declaring a new type that would
encapsulate this complexity is minimal. hence, ignore the warnings for
now.

[1]:
https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
This commit is contained in:
Shannon Sterz 2025-03-06 13:43:43 +01:00 committed by Wolfgang Bumiller
parent f9dd576783
commit 59898d0177
3 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,7 @@ fn load_dns_challenge_schema() -> Result<Vec<AcmeChallengeSchema>, Error> {
}
pub fn get_cached_challenge_schemas() -> Result<ChallengeSchemaWrapper, Error> {
#[allow(clippy::type_complexity)]
static CACHE: LazyLock<Mutex<Option<(Arc<Vec<AcmeChallengeSchema>>, SystemTime)>>> =
LazyLock::new(|| Mutex::new(None));

View File

@ -31,6 +31,7 @@ impl UserInformation for DummyUserInfo {
}
}
#[allow(clippy::type_complexity)]
fn check_auth<'a>(
_headers: &'a HeaderMap,
_method: &'a Method,

View File

@ -60,6 +60,7 @@ where
enum RecordsInner<R: Send + Sync> {
New(R),
#[allow(clippy::type_complexity)]
Reading(Pin<Box<dyn Future<Output = io::Result<Option<(Vec<u8>, R)>>> + Send + Sync>>),
Done,
}