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

sleep: Replace uucore::parse_time::from_str with fundu #4448

Merged

Conversation

Joining7943
Copy link
Contributor

See also https:/Joining7943/fundu. This pr also improves the error messages.

This pr depends on #4439

@tertsdiepraam
Copy link
Member

Marking this as draft because of the dependency between the two PRs. You can mark it ready again when the other PR is merged :)

@tertsdiepraam tertsdiepraam marked this pull request as draft March 1, 2023 12:27
@Joining7943 Joining7943 force-pushed the sleep-replace-uucore-from-str-with-fundu branch 2 times, most recently from ddd3069 to ff70ca5 Compare March 11, 2023 20:39
@Joining7943 Joining7943 marked this pull request as ready for review March 11, 2023 21:00
Copy link
Member

@tertsdiepraam tertsdiepraam left a comment

Choose a reason for hiding this comment

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

Nice! I'll update the branch to get rid of the clippy warnings.

ParseError::Syntax(pos, description)
| ParseError::TimeUnit(pos, description) => format!(
"{description} at position {}",
pos.checked_add(1).unwrap_or(pos)
Copy link
Member

Choose a reason for hiding this comment

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

Nit: This is just a saturating_add isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh yes, I'll change it to saturating_add!

Nice! I'll update the branch to get rid of the clippy warnings.

Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I rebased onto main after this change, so the merge commit is gone again.

@Joining7943 Joining7943 force-pushed the sleep-replace-uucore-from-str-with-fundu branch from 7614cc2 to 5fb091a Compare March 12, 2023 14:48
@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/misc/timeout is no longer failing!

@tertsdiepraam tertsdiepraam merged commit 6708284 into uutils:main Mar 12, 2023
@tertsdiepraam
Copy link
Member

Nice!

@uutils uutils deleted a comment from github-actions bot Jun 10, 2023
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