Skip to content

Commit 7efdce5

Browse files
luckfamousaclaude
andcommitted
Suppress non_local_definitions warning from abi_stable macros
The #[sabi_trait] macro generates impl blocks inside const items which triggers this warning. This is a known issue with the macro and cannot be fixed in user code. Suppressing it also fixes the SARIF validation error caused by duplicate relatedLocations in the clippy output. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 13a123b commit 7efdce5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • dicom-rst-plugin-api/src

‎dicom-rst-plugin-api/src/lib.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
//! }
3838
//! ```
3939
40+
// Allow non_local_definitions warning from abi_stable's #[sabi_trait] macro
41+
// This is a known issue with the macro generating impl blocks in const items
42+
#![allow(non_local_definitions)]
4043
#![allow(clippy::module_name_repetitions)]
4144

4245
use abi_stable::{

0 commit comments

Comments
 (0)