Skip to content

chore(oidc-provider): drop unused AwsExchange builder methods#75

Open
alukach wants to merge 1 commit into
mainfrom
chore/drop-aws-exchange-builders
Open

chore(oidc-provider): drop unused AwsExchange builder methods#75
alukach wants to merge 1 commit into
mainfrom
chore/drop-aws-exchange-builders

Conversation

@alukach

@alukach alukach commented Jun 18, 2026

Copy link
Copy Markdown
Member

What I'm changing

AwsExchange in crates/oidc-provider/src/exchange/aws.rs exposes four builder methods — with_endpoint, with_session_name, with_duration, with_session_policy — that have zero callers anywhere in the workspace. Every AwsExchange field is already pub, so a caller needing non-default values sets them directly via struct-update syntax on AwsExchange::new(..). The builders are dead flexibility. Surfaced by a repo-wide over-engineering audit.

How I did it

  • crates/oidc-provider/src/exchange/aws.rs — removed the four with_* methods from impl AwsExchange, leaving new() as the sole constructor.

Test plan

  • cargo check -p multistore-oidc-provider
  • cargo clippy -p multistore-oidc-provider (clean)
  • cargo fmt

🤖 Generated with Claude Code

`with_endpoint`, `with_session_name`, `with_duration`, and `with_session_policy`
have no callers anywhere in the workspace. All `AwsExchange` fields are `pub`, so
callers that need non-default values set them directly via struct update on
`AwsExchange::new(..)`. Remove the dead builders.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Latest commit deployed to https://multistore-proxy-pr-75.development-seed.workers.dev

  • Date: 2026-06-18T23:40:33Z
  • Commit: f05bf51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant