Skip to content

Conversation

@Bilogweb3
Copy link
Contributor

@Bilogweb3 Bilogweb3 commented Oct 29, 2025

While looking through the codebase, noticed that Handler has a manual Default implementation that just calls new(), which creates a struct with None.

This pattern was introduced in #9766 when adding the debug_handler field.
Using derive(Default) is more idiomatic since all fields already implement Default.

This removes the manual impl Default block and updates new() to call Self::default(). Same behavior, less code to maintain.

@Bilogweb3 Bilogweb3 requested a review from 0xrusowsky November 2, 2025 18:43
@Bilogweb3 Bilogweb3 closed this Nov 3, 2025
@Bilogweb3 Bilogweb3 deleted the refactor/derive-default-handler branch November 3, 2025 15:54
@github-project-automation github-project-automation bot moved this to Done in Foundry Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants