[pbs-devel] [PATCH proxmox 16/19] network-api: ignore clippy lint about upper case acronyms
Shannon Sterz
s.sterz at proxmox.com
Thu Mar 6 13:43:46 CET 2025
while the lint is correct about how these enum members should be
capitalized, the enum is marked as `pub` and all users of it would
need to adapt. so ignore the lint for now [1].
[1]:
https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
Signed-off-by: Shannon Sterz <s.sterz at proxmox.com>
---
proxmox-network-api/src/config/lexer.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxmox-network-api/src/config/lexer.rs b/proxmox-network-api/src/config/lexer.rs
index 6a20f009..bc0392cf 100644
--- a/proxmox-network-api/src/config/lexer.rs
+++ b/proxmox-network-api/src/config/lexer.rs
@@ -4,6 +4,7 @@ use std::iter::Iterator;
use std::sync::LazyLock;
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
+#[allow(clippy::upper_case_acronyms)]
pub enum Token {
Text,
Comment,
--
2.39.5
More information about the pbs-devel
mailing list