mirror of
https://github.com/Devolutions/IronRDP.git
synced 2026-11-23 16:35:52 +00:00
2e2b5edfd7
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.
14 lines
694 B
TOML
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
|