Skip to content

Implement std:error:Error trait for ImplementationError#78

Merged
AkshatM merged 1 commit intocloudflare:mainfrom
AkshatM:main
Apr 17, 2026
Merged

Implement std:error:Error trait for ImplementationError#78
AkshatM merged 1 commit intocloudflare:mainfrom
AkshatM:main

Conversation

@AkshatM
Copy link
Copy Markdown
Contributor

@AkshatM AkshatM commented Apr 17, 2026

Fixes #73

@AkshatM AkshatM requested review from armfazh and thibmeu April 17, 2026 17:05
Copy link
Copy Markdown
Contributor

@armfazh armfazh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one comment only about core vs std.

Comment thread crates/web-bot-auth/src/lib.rs Outdated
WebBotAuth(WebBotAuthError),
}

impl std::fmt::Display for ImplementationError {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider implement from core module (here and below), in case the crate needs to comply no-std

Suggested change
impl std::fmt::Display for ImplementationError {
impl core::fmt::Display for ImplementationError {

@AkshatM AkshatM merged commit e1ff6b9 into cloudflare:main Apr 17, 2026
3 checks passed
AkshatM added a commit to AkshatM/web-bot-auth that referenced this pull request Apr 22, 2026
- [Implement `std:error:Error` trait for
  `ImplementationError`](cloudflare#78)

- [refactor: replace time::Duration with std::time::Duration in public
  API](cloudflare#79).

The last makes a breaking change to our APIs, and so mandates a minor
version bump per our existing convention.
@AkshatM AkshatM mentioned this pull request Apr 22, 2026
AkshatM added a commit that referenced this pull request Apr 22, 2026
- [Implement `std:error:Error` trait for
  `ImplementationError`](#78)

- [refactor: replace time::Duration with std::time::Duration in public
  API](#79).

The last makes a breaking change to our APIs, and so mandates a minor
version bump per our existing convention.
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.

rust: ImplementationError should implement std::error::Error

2 participants