Skip to content

Commit

Permalink
download_sysext: fix clippy warning about needless_timeout
Browse files Browse the repository at this point in the history
Fix warning when running cargo-clippy:

```
warning: the following explicit lifetimes could be elided: 'a
  --> src/bin/download_sysext.rs:47:6
   |
47 | impl<'a> Package<'a> {
   |      ^^          ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
   |
47 - impl<'a> Package<'a> {
47 + impl Package<'_> {
   |
```
  • Loading branch information
dongsupark committed Nov 29, 2024
1 parent b3c8291 commit e48f7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/download_sysext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct Package<'a> {
status: PackageStatus,
}

impl<'a> Package<'a> {
impl Package<'_> {
#[rustfmt::skip]
// Return Sha256 hash of data in the given path.
// If maxlen is None, a simple read to the end of the file.
Expand Down

0 comments on commit e48f7ec

Please sign in to comment.