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

update error message for missing '0x' prefix #6869

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

chen-liang-CN
Copy link
Contributor

Summary

The error message read a bit strange, so I updated it to make it more explicit.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @chen-liang-CN)


crates/cairo-lang-utils/src/bigint.rs line 34 at r1 (raw file):

        Some(num_no_prefix) => BigUint::from_str_radix(num_no_prefix, 16)
            .map_err(|error| serde::de::Error::custom(format!("{error}"))),
        None => Err(serde::de::Error::custom(format!("{s} does not start with '0x', which is missing."))),

revert this part.
and run ./scripts/rust_fmt.sh.

Suggestion:

ith `0x`,

@chen-liang-CN chen-liang-CN requested a review from orizi December 17, 2024 15:34
Copy link
Contributor Author

@chen-liang-CN chen-liang-CN left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @orizi)

Copy link
Contributor Author

@chen-liang-CN chen-liang-CN left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @orizi)


crates/cairo-lang-utils/src/bigint.rs line 34 at r1 (raw file):

Previously, orizi wrote…

revert this part.
and run ./scripts/rust_fmt.sh.

Done.

Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @chen-liang-CN)

@orizi orizi enabled auto-merge December 17, 2024 16:22
@orizi orizi added this pull request to the merge queue Dec 17, 2024
Merged via the queue into starkware-libs:main with commit 7322339 Dec 17, 2024
47 checks passed
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.

3 participants