Skip to content

Clippy cleanup (#609)

Cirrus CI / nightly failed Oct 7, 2024 in 1m 34s

Task Summary

Instruction lint failed in 00:07

Details

⚠️ Not enough compute credits to prioritize tasks!
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:00 clone
✅ 00:01 cargo
✅ 00:10 build
✅ 00:04 doc
✅ 01:07 test
❌ 00:07 lint

error: the following explicit lifetimes could be elided: 'a
    --> mockall_derive/src/mock_function.rs:2365:6
     |
2365 | impl<'a> ToTokens for RefMutExpectations<'a> {
     |      ^^                                  ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
2365 - impl<'a> ToTokens for RefMutExpectations<'a> {
2365 + impl ToTokens for RefMutExpectations<'_> {
     |

error: the following explicit lifetimes could be elided: 'a
    --> mockall_derive/src/mock_function.rs:2404:6
     |
2404 | impl<'a> ToTokens for StaticExpectations<'a> {
     |      ^^                                  ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
2404 - impl<'a> ToTokens for StaticExpectations<'a> {
2404 + impl ToTokens for StaticExpectations<'_> {
     |

error: the following explicit lifetimes could be elided: 'a
    --> mockall_derive/src/mock_function.rs:2441:6
     |
2441 | impl<'a> ToTokens for GenericExpectations<'a> {
     |      ^^                                   ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
2441 - impl<'a> ToTokens for GenericExpectations<'a> {
2441 + impl ToTokens for GenericExpectations<'_> {
     |

error: the following explicit lifetimes could be elided: 'a
    --> mockall_derive/src/mock_function.rs:2487:6
     |
2487 | impl<'a> ToTokens for StaticGenericExpectations<'a> {
     |      ^^                                         ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
2487 - impl<'a> ToTokens for StaticGenericExpectations<'a> {
2487 + impl ToTokens for StaticGenericExpectations<'_> {
     |

error: could not compile `mockall_derive` (lib) due to 19 previous errors
warning: build failed, waiting for other jobs to finish...

Exit status: 101