mirror of
https://github.com/awslabs/iam-policy-autopilot.git
synced 2026-04-26 00:15:57 +03:00
[PR #142] [MERGED] chore: fix some clippy warnings #258
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/iam-policy-autopilot#258
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/awslabs/iam-policy-autopilot/pull/142
Author: @adpaco-aws
Created: 2/5/2026
Status: ✅ Merged
Merged: 2/6/2026
Merged by: @adpaco-aws
Base:
main← Head:remove-lints-1📝 Commits (10+)
0ccf98echore: fix clippy lint bool_to_int_with_if5be8d35chore: fix clippy lint assigning_clones13af029chore: fix clippy lint uninlined_format_args885362dchore: fix clippy lint collection_is_never_readf542f5cchore: fix clippy lint explicit_iter_loop0b3418achore: fix clippy lint format_push_stringf6e0623chore: fix clippy lint similar_names62ccb37chore: fix clippy lint implicit_clonef49164echore: fix clippy lint items_after_statements13aa34fchore: fix additional implicit_clone issues with to_string📊 Changes
39 files changed (+227 additions, -310 deletions)
View changed files
📝
Cargo.toml(+0 -8)📝
iam-policy-autopilot-access-denied/src/aws/iam_client.rs(+10 -13)📝
iam-policy-autopilot-access-denied/src/aws/policy_naming.rs(+3 -6)📝
iam-policy-autopilot-access-denied/src/aws/principal.rs(+1 -2)📝
iam-policy-autopilot-access-denied/src/aws/sts.rs(+1 -1)📝
iam-policy-autopilot-access-denied/src/commands/plan.rs(+1 -2)📝
iam-policy-autopilot-access-denied/src/parsing/utils.rs(+1 -1)📝
iam-policy-autopilot-cli/src/commands.rs(+9 -9)📝
iam-policy-autopilot-cli/src/main.rs(+15 -15)📝
iam-policy-autopilot-cli/src/output.rs(+15 -27)📝
iam-policy-autopilot-mcp-server/src/lib.rs(+4 -4)📝
iam-policy-autopilot-mcp-server/src/mcp.rs(+8 -8)📝
iam-policy-autopilot-policy-generation/build.rs(+10 -12)📝
iam-policy-autopilot-policy-generation/src/api/common.rs(+3 -3)📝
iam-policy-autopilot-policy-generation/src/api/generate_policies.rs(+1 -1)📝
iam-policy-autopilot-policy-generation/src/embedded_data.rs(+5 -6)📝
iam-policy-autopilot-policy-generation/src/enrichment/engine.rs(+4 -9)📝
iam-policy-autopilot-policy-generation/src/enrichment/mod.rs(+1 -1)📝
iam-policy-autopilot-policy-generation/src/enrichment/operation_fas_map.rs(+3 -4)📝
iam-policy-autopilot-policy-generation/src/enrichment/resource_matcher.rs(+29 -38)...and 19 more files
📄 Description
Issue #, if available: Towards #136
Description of changes: Removed these
allow'dclippylints from ourCargo.tomlfile and fixed them:bool_to_int_with_ifassigning_clonesuninlined_format_argscollection_is_never_readexplicit_iter_loopformat_push_stringimplicit_cloneitems_after_statementsI also fixed a
similar_nameswarnings that appeared while working on these.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.