Repository navigation
fix(policy): alias the class-cache type (clippy type_complexity, red on main) - #1658
Merged
Merged
Conversation
…ens main #1580's (correct) graph-keyed cache widened the field type past clippy's type_complexity threshold under -D warnings, so main's clippy job is red and every PR inherits it through the merge-ref checkout. A ClassCache type alias is clippy's own suggested shape; no behavior change.
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.
Unbreak-main: #1580's graph-keyed class cache — the fix itself is right — widened
PolicyContext.class_cache's type past clippy'stype_complexitythreshold, and with-D warningsthat turned main's clippy job red (first failing run: 31954057339, at 3ce1352). Every open PR inherits the red through the merge-ref checkout, which is how we noticed on #1654.One
ClassCachetype alias — clippy's own suggested shape — no behavior change.cargo clippy -p fluree-db-policy --all-targets -- -D warningsclean locally, policy suite 39/39, fmt clean.