Skip to content
  • Dónal Murray's avatar
    Fix clippy lints behind feature gates and add new CI step all features (#2569) · d68868f6
    Dónal Murray authored
    
    
    Many clippy lints usually enforced by `-Dcomplexity` and `-Dcorrectness`
    are not caught by CI as they are gated by `features`, like
    `runtime-benchmarks`, while the clippy CI job runs with only the default
    features for all targets.
    
    This PR also adds a CI step to run clippy with `--all-features` to
    ensure the code quality is maintained behind feature gates from now on.
    
    To improve local development, clippy lints are downgraded to warnings,
    but they still will result in an error at CI due to the `-Dwarnings`
    rustflag.
    
    ---------
    
    Co-authored-by: default avatarLiam Aharon <[email protected]>
    d68868f6