-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
17 lines (15 loc) · 932 Bytes
/
Copy pathclippy.toml
File metadata and controls
17 lines (15 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Clippy configuration for the PlatynUI workspace.
#
# This file lives at the workspace root and applies to all crates.
# --- Disallowed types ---
# Prefer std equivalents over once_cell. The once_cell crate was fully replaced
# by std::sync::{OnceLock, LazyLock} which are stable since Rust 1.70 / 1.80.
disallowed-types = [
{ path = "once_cell::sync::Lazy", reason = "Use std::sync::LazyLock instead (stable since Rust 1.80)" },
{ path = "once_cell::sync::OnceCell", reason = "Use std::sync::OnceLock instead (stable since Rust 1.70)" },
{ path = "once_cell::unsync::Lazy", reason = "Use std::cell::LazyCell instead (stable since Rust 1.80)" },
{ path = "once_cell::unsync::OnceCell", reason = "Use std::cell::OnceCell instead (stable since Rust 1.70)" },
]
# --- Function signature limits ---
# Default is 7, but low-level drawing/FFI functions legitimately need more.
too-many-arguments-threshold = 10