8000 du: remove crash! macro by alexhausen · Pull Request #5501 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

du: remove crash! macro #5501

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

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Conversation

alexhausen
Copy link
Contributor

This PR is related to #5487.
It removes the crash! macro from du.

@uutils uutils deleted a comment from github-actions bot Nov 6, 2023
Comment on lines 258 to 264
match parse_size_u64(s) {
Ok(x) => Ok(x),
Err(e) => Err(USimpleError::new(
1,
format_error_message(&e, s, options::BLOCK_SIZE),
)),
}
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe simplify with:

Suggested change
match parse_size_u64(s) {
Ok(x) => Ok(x),
Err(e) => Err(USimpleError::new(
1,
format_error_message(&e, s, options::BLOCK_SIZE),
)),
}
parse_size_u64(s)
.map_err(|e| USimpleError::new(
1,
format_error_message(&e, s, options::BLOCK_SIZE),
))

@alexhausen alexhausen requested a review from sylvestre November 8, 2023 23:33
Copy link
github-actions bot commented Nov 9, 2023

GNU testsuite comparison:

GNU test failed: tests/tail/symlink. tests/tail/symlink is passing on 'main'. Maybe you have to rebase?

@cakebaker cakebaker merged commit 6fa8a6d into uutils:main Nov 9, 2023
@cakebaker
Copy link
Contributor

Thanks for your PR!

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
0