Skip to content

Conversation

@xiugaze
Copy link
Collaborator

@xiugaze xiugaze commented Aug 18, 2022

check em

if let Some(_) = parts.get(3) {
let fraction: i128 = parts.get(4)?
.as_str()
.trim() // TODO: slice
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This should be a string slice according to the python library, but I can't figure out a way to index an &str. See if you can figure it out

@xiugaze
Copy link
Collaborator Author

xiugaze commented Aug 18, 2022

On line 53 of numeric.rs, it should be a string slice but I can't index a string. Is there a way around this?

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.

1 participant