mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-28 11:44:39 +00:00
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:
parent
f9dd576783
commit
59898d0177
@ -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));
|
||||
|
||||
|
@ -31,6 +31,7 @@ impl UserInformation for DummyUserInfo {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::type_complexity)]
|
||||
fn check_auth<'a>(
|
||||
_headers: &'a HeaderMap,
|
||||
_method: &'a Method,
|
||||
|
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user