Skip to content

Remove unnecessary immediately invoked closures #73

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 1 commit into from
Oct 8, 2022

Conversation

ekarlsn
Copy link
Collaborator

@ekarlsn ekarlsn commented Oct 7, 2022

For the tests, they where likely added before tests could return Result.
For the code, likely got easier to handle with thiserror crate

Ok(())
}()
.unwrap_or_else(|e| panic!("test_read_line failed: {}", e));
fn test_read_line() -> Result<(), Error> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: These tests don't need to return anything.

@petreeftime
Copy link
Collaborator

bors r+

@petreeftime
Copy link
Collaborator

@matthiasbeyer I think bors is not enabled for this repo now.

@matthiasbeyer
Copy link
Member

matthiasbeyer commented Oct 7, 2022

I requested it to be installed. 👍

May take a few. I will r+ this as soon as I get a notification that bors is installed.

@petreeftime
Copy link
Collaborator

bors try

bors bot added a commit that referenced this pull request Oct 8, 2022
@bors
Copy link
Contributor

bors bot commented Oct 8, 2022

try

Build succeeded:

@petreeftime
Copy link
Collaborator

bors merge

@bors
Copy link
Contributor

bors bot commented Oct 8, 2022

Build succeeded:

  • CI

@bors bors bot merged commit a2d7d0e into rust-cli:master Oct 8, 2022
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