Skip to content

CI: Run the main jobs on macOS arm64 as well #431

CI: Run the main jobs on macOS arm64 as well

CI: Run the main jobs on macOS arm64 as well #431

GitHub Actions / clippy failed Feb 5, 2024 in 0s

clippy

19 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 19
Warning 0
Note 0
Help 0

Versions

  • rustc 1.77.0-beta.1 (04ba45219 2024-02-04)
  • cargo 1.77.0-beta.1 (7bb7b5395 2024-01-20)
  • clippy 0.1.77 (04ba452 2024-02-04)

Annotations

Check failure on line 69 in src/sync_base/base_cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
  --> src/sync_base/base_cache.rs:69:26
   |
69 |             housekeeper: self.housekeeper.as_ref().map(Arc::clone),
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.housekeeper.clone()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 340 in src/policy.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
   --> src/policy.rs:340:9
    |
340 |         self.expiry.as_ref().map(Arc::clone)
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.expiry.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 302 in src/policy.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
   --> src/policy.rs:302:21
    |
302 |             expiry: self.expiry.as_ref().map(Arc::clone),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.expiry.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 759 in src/sync/segment.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
   --> src/sync/segment.rs:759:21
    |
759 |                     eviction_listener.as_ref().map(Arc::clone),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eviction_listener.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 757 in src/sync/segment.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
   --> src/sync/segment.rs:757:21
    |
757 |                     weigher.as_ref().map(Arc::clone),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `weigher.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 80 in src/future/base_cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
  --> src/future/base_cache.rs:80:26
   |
80 |             housekeeper: self.housekeeper.as_ref().map(Arc::clone),
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.housekeeper.clone()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
   = note: `-D clippy::useless-asref` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::useless_asref)]`

Check failure on line 402 in src/common/timer_wheel.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `0` is never read

error: field `0` is never read
   --> src/common/timer_wheel.rs:402:17
    |
402 |     Descheduled(Box<DeqNode<TimerNode<K>>>),
    |     ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     field in this variant
    |
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
402 |     Descheduled(()),
    |                 ~~

Check failure on line 3700 in src/sync/cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `0` is never read

error: field `0` is never read
    --> src/sync/cache.rs:3700:28
     |
3700 |         pub struct MyError(String);
     |                    ------- ^^^^^^
     |                    |
     |                    field in this struct
     |
     = note: `MyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
     |
3700 |         pub struct MyError(());
     |                            ~~

Check failure on line 3559 in src/sync/cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `0` is never read

error: field `0` is never read
    --> src/sync/cache.rs:3559:28
     |
3559 |         pub struct MyError(String);
     |                    ------- ^^^^^^
     |                    |
     |                    field in this struct
     |
     = note: `MyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
     |
3559 |         pub struct MyError(());
     |                            ~~

Check failure on line 4056 in src/future/cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `0` is never read

error: field `0` is never read
    --> src/future/cache.rs:4056:28
     |
4056 |         pub struct MyError(String);
     |                    ------- ^^^^^^
     |                    |
     |                    field in this struct
     |
     = note: `MyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
     |
4056 |         pub struct MyError(());
     |                            ~~

Check failure on line 3919 in src/future/cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `0` is never read

error: field `0` is never read
    --> src/future/cache.rs:3919:28
     |
3919 |         pub struct MyError(String);
     |                    ------- ^^^^^^
     |                    |
     |                    field in this struct
     |
     = note: `MyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
     = note: `-D dead-code` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(dead_code)]`
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
     |
3919 |         pub struct MyError(());
     |                            ~~

Check failure on line 69 in src/sync_base/base_cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
  --> src/sync_base/base_cache.rs:69:26
   |
69 |             housekeeper: self.housekeeper.as_ref().map(Arc::clone),
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.housekeeper.clone()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 340 in src/policy.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
   --> src/policy.rs:340:9
    |
340 |         self.expiry.as_ref().map(Arc::clone)
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.expiry.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 302 in src/policy.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
   --> src/policy.rs:302:21
    |
302 |             expiry: self.expiry.as_ref().map(Arc::clone),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.expiry.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 759 in src/sync/segment.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
   --> src/sync/segment.rs:759:21
    |
759 |                     eviction_listener.as_ref().map(Arc::clone),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `eviction_listener.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 757 in src/sync/segment.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
   --> src/sync/segment.rs:757:21
    |
757 |                     weigher.as_ref().map(Arc::clone),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `weigher.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 80 in src/future/base_cache.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref.map(...)` does nothing

error: this call to `as_ref.map(...)` does nothing
  --> src/future/base_cache.rs:80:26
   |
80 |             housekeeper: self.housekeeper.as_ref().map(Arc::clone),
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.housekeeper.clone()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
   = note: `-D clippy::useless-asref` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::useless_asref)]`

Check failure on line 402 in src/common/timer_wheel.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `0` is never read

error: field `0` is never read
   --> src/common/timer_wheel.rs:402:17
    |
402 |     Descheduled(Box<DeqNode<TimerNode<K>>>),
    |     ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     field in this variant
    |
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
402 |     Descheduled(()),
    |                 ~~

Check failure on line 399 in src/common/timer_wheel.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `0` is never read

error: field `0` is never read
   --> src/common/timer_wheel.rs:399:17
    |
399 |     Rescheduled(TrioArc<EntryInfo<K>>),
    |     ----------- ^^^^^^^^^^^^^^^^^^^^^
    |     |
    |     field in this variant
    |
    = note: `-D dead-code` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(dead_code)]`
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
    |
399 |     Rescheduled(()),
    |                 ~~