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

Fix clippy lint #1562

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Conversation

saschagrunert
Copy link
Member

What type of PR is this?

/kind failing-test

What this PR does / why we need it:

This fixes the redundant guard error:

error: redundant guard
   --> conmon-rs/server/src/container_io.rs:246:26
    |
246 |                 Ok(n) if n == 0 => {
    |                          ^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
    = note: `-D clippy::redundant-guards` implied by `-D warnings`
help: try
    |
246 -                 Ok(n) if n == 0 => {
246 +                 Ok(0) => {
    |

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

None

This fixes the redundant guard error:

```
error: redundant guard
   --> conmon-rs/server/src/container_io.rs:246:26
    |
246 |                 Ok(n) if n == 0 => {
    |                          ^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
    = note: `-D clippy::redundant-guards` implied by `-D warnings`
help: try
    |
246 -                 Ok(n) if n == 0 => {
246 +                 Ok(0) => {
    |
```

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Aug 7, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #1562 (461d5c5) into main (ffca1e0) will increase coverage by 0.47%.
Report is 22 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1562      +/-   ##
==========================================
+ Coverage   34.27%   34.74%   +0.47%     
==========================================
  Files          13       13              
  Lines        1135     1134       -1     
  Branches      394      391       -3     
==========================================
+ Hits          389      394       +5     
+ Misses        493      483      -10     
- Partials      253      257       +4     

@saschagrunert
Copy link
Member Author

@rphillips @haircommander PTAL

@rphillips
Copy link
Collaborator

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 8, 2023
@openshift-merge-robot openshift-merge-robot merged commit 74c71fb into containers:main Aug 8, 2023
28 checks passed
@saschagrunert saschagrunert deleted the clippy branch August 9, 2023 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants