fix: conditional clippy lint allows for lifetime generics#361
Merged
RAprogramm merged 5 commits intomainfrom Jan 21, 2026
Merged
fix: conditional clippy lint allows for lifetime generics#361RAprogramm merged 5 commits intomainfrom
RAprogramm merged 5 commits intomainfrom
Conversation
Add `#[allow(clippy::elidable_lifetime_names, clippy::needless_lifetimes)]` only when the type has lifetime parameters. This prevents conflicts with project-level `forbid` directives while suppressing false positives in generated code. Also add "no-std" category to crates.io metadata. Changes: - Add `lint.rs` module with `lifetime_lint_allows` helper - Apply conditional allows in Display and Error trait generation - Add "no-std" category to Cargo.toml
- masterror: 0.27.1 → 0.27.2 - masterror-derive: 0.11.1 → 0.11.2 - Update all dependencies via cargo update
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Optimize Metadata to use inline storage for small field counts: - Add InlineVec<T> with enum-based storage for 0-4 elements inline - Replace BTreeMap with sorted InlineVec + binary search for O(log n) lookup - Eliminate heap allocation for typical errors with 0-4 metadata fields - Replace format! with write! in Display hot path Expected ~100-200ns savings per error creation for common cases. Changes: - New inline_vec.rs module with safe, zero-dependency InlineVec - Updated metadata.rs to use InlineVec with binary search - Fixed Display impl in error.rs to avoid format! allocation
Remove reference to private InlineVec type in public documentation to fix rustdoc lint error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#[allow(clippy::elidable_lifetime_names, clippy::needless_lifetimes)]only when type has lifetime parametersforbiddirectivesChanges
lint.rsmodule withlifetime_lint_allowshelper