Files
IronRDP/clippy.toml
T
Greg Lamberson 2e2b5edfd7 feat(error): capture core::panic::Location automatically in Error<Kind> (#1262)
Adds automatic caller location capture to `ironrdp-error::Error<Kind>` using `#[track_caller]` + `core::panic::Location::caller()`, and surfaces that location in the `Display` output while keeping `Debug` stable for cross-platform snapshots.
2026-05-12 18:07:31 +09:00

14 lines
694 B
TOML

msrv = "1.87"
semicolon-outside-block-ignore-multiline = true
accept-comment-above-statement = true
accept-comment-above-attributes = true
allow-panic-in-tests = true
allow-unwrap-in-tests = true
# Raised from the default of 128 to accommodate the `&'static core::panic::Location<'static>`
# field that `ironrdp_error::Error<Kind>` captures via `#[track_caller]` for diagnostic
# reporting. The location field adds one usize (8 bytes) to every error type, which pushes
# `Error<ConnectorErrorKind>` (whose largest variant nests another `Error<Kind>`) just over
# the 128-byte threshold. The trade-off favours diagnostic quality over the small
# Result-Ok-path cost.
large-error-threshold = 152