Skip to content
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

Add unwrap check to lint #38

Merged
merged 3 commits into from
Jan 18, 2023
Merged

Add unwrap check to lint #38

merged 3 commits into from
Jan 18, 2023

Conversation

zsluedem
Copy link
Collaborator

No description provided.

@zsluedem zsluedem marked this pull request as ready for review January 14, 2023 07:13
@zsluedem zsluedem requested a review from Vid201 January 14, 2023 07:13
@zsluedem zsluedem linked an issue Jan 14, 2023 that may be closed by this pull request
}
.encode();
packed.truncate(packed.len() - 32);
Bytes::from(packed)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't have to convert from bytes to str and then str to bytes which is unnecessary and slower. We could just operate on vec bytes.

Copy link
Member

Choose a reason for hiding this comment

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

Looks good

src/types/user_operation.rs Outdated Show resolved Hide resolved
@zsluedem zsluedem merged commit 3edbc05 into silius-rs:main Jan 18, 2023
@zsluedem zsluedem deleted the unwrap-check branch January 18, 2023 08:44
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.

Add unwrap check to lint
2 participants