Skip to content

Remove unnecessary immediately invoked closures - #73

Merged
bors[bot] merged 1 commit into
rust-cli:masterfrom
ekarlsn:remove-immediate-invoke-lambdas
Oct 8, 2022
Merged

Remove unnecessary immediately invoked closures#73
bors[bot] merged 1 commit into
rust-cli:masterfrom
ekarlsn:remove-immediate-invoke-lambdas

Conversation

@ekarlsn

Copy link
Copy Markdown
Collaborator

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

Signed-off-by: Erik Karlsson <triggger@gmail.com>
Comment threadsrc/session.rs
Ok(())
}()
.unwrap_or_else(|e| panic!("test_read_line failed: {}", e));
fn test_read_line() -> Result<(), Error> {

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

bors r+

@petreeftime

Copy link
Copy Markdown
Collaborator

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

@matthiasbeyer

matthiasbeyer commented Oct 7, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown
Collaborator

bors try

borsBot added a commit that referenced this pull request Oct 8, 2022
@bors

borsBot commented Oct 8, 2022

Copy link
Copy Markdown
Contributor

try

Build succeeded:

@petreeftime

Copy link
Copy Markdown
Collaborator

bors merge

@bors

borsBot commented Oct 8, 2022

Copy link
Copy Markdown
Contributor

Build succeeded:

  • CI

@bors
borsBot merged commit a2d7d0e into rust-cli:masterOct 8, 2022
Sign up for freeto 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

@ekarlsn@petreeftime@matthiasbeyer