Skip to content

Rename some structs named UnChecked #22

Merged
nakaryo716 merged 2 commits into
mainfrom
refactor/rename-unchecked
Jun 20, 2025
Merged

Rename some structs named UnChecked #22
nakaryo716 merged 2 commits into
mainfrom
refactor/rename-unchecked

Conversation

@nakaryo716

Copy link
Copy Markdown
Owner

Related Issue

Closes #21

Overview

This PR changes the names of some structs, including,UnCheckedCSRFToken and UnCheckedCodeResponse.
The purpose is to avoid confusion with "unsafe code", caused by the "unchecked" term.

Changes

  • Rename from UnCheckedCSRFToken to RawCSRFToken
  • Rename from UnCheckedCodeResponse to RawCodeResponse
  • Rename RawCodeResponse's construct method name from from_url to new

Breaking Changes

This is a breaking change, as the old struct names are no longer available.

In Rust, the term `unchecked` often indicates unsafe code. However, in this case, the struct's `unchecked` means "not yet verified."
Renamed the struct to `RawCSRFToken` to avoid confusion.

BREAKING CHANGE: The struct name has been changed.
Related to ISSUE #21
…e` and constructor method from `from_url` to `new`

In Rust, the term `unchecked` often indicates unsafe code. However, in this context, 'unchecked' means "not yet verified," not "unsafe."
Renamed the struct to `RawCodeResponse` to avoid confusion.

BREAKING CHANGE: The struct name has changed from `UnCheckCodeResponse` to `RawCodeResponse`.
Related to ISSUE #21
@nakaryo716 nakaryo716 marked this pull request as ready for review June 20, 2025 12:14
@nakaryo716 nakaryo716 assigned nakaryo716 and unassigned nakaryo716 Jun 20, 2025
@nakaryo716 nakaryo716 merged commit a0e81dc into main Jun 20, 2025
1 check passed
@nakaryo716 nakaryo716 deleted the refactor/rename-unchecked branch June 20, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename some structs named UnChecked to avoid confusing with unsafe code

1 participant