Skip to content

Minor refactorings #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed

Conversation

adamnemecek
Copy link

No description provided.

@@ -5,7 +5,7 @@ use primitive_types::{H256, U256};

#[inline]
pub fn codesize(state: &mut Machine) -> Control {
let size = U256::from(state.code.len());
let size: U256 = state.code.len().into();
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain the reasoning behind those changes? Why do we want to prefer Into than From?

Copy link
Author

Choose a reason for hiding this comment

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

It’s more idiomatic.

@sorpaas
Copy link
Member

sorpaas commented Aug 17, 2025

Closing stale v0.x PR.

@sorpaas sorpaas closed this Aug 17, 2025
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.

2 participants