Merge pull request #25 from TheQuantumPhysicist/fix/remove-unnecessar… #23
clippy
5 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 5 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.82.0 (f6e511eec 2024-10-15)
- cargo 1.82.0 (8f40fc59f 2024-08-21)
- clippy 0.1.82 (f6e511e 2024-10-15)
Annotations
Check warning on line 255 in src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/lib.rs:255:6
|
255 | impl<'a, C: PixelColor, B: FrameBufferBackend<Color = C>> Iterator for PixelIterator<'a, C, B> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
255 - impl<'a, C: PixelColor, B: FrameBufferBackend<Color = C>> Iterator for PixelIterator<'a, C, B> {
255 + impl<C: PixelColor, B: FrameBufferBackend<Color = C>> Iterator for PixelIterator<'_, C, B> {
|
Check warning on line 165 in src/backends.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/backends.rs:165:13
|
165 | unsafe impl<'a, C> DMACapableFrameBufferBackend for EndianCorrectedBuffer<'a, C>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
165 - unsafe impl<'a, C> DMACapableFrameBufferBackend for EndianCorrectedBuffer<'a, C>
165 + unsafe impl<C> DMACapableFrameBufferBackend for EndianCorrectedBuffer<'_, C>
|
Check warning on line 133 in src/backends.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/backends.rs:133:6
|
133 | impl<'a, C> FrameBufferBackend for EndianCorrectedBuffer<'a, C>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
133 - impl<'a, C> FrameBufferBackend for EndianCorrectedBuffer<'a, C>
133 + impl<C> FrameBufferBackend for EndianCorrectedBuffer<'_, C>
|
Check warning on line 108 in src/backends.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/backends.rs:108:13
|
108 | unsafe impl<'a, C: PixelColor, const N: usize> DMACapableFrameBufferBackend for &'a mut [C; N] {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
108 - unsafe impl<'a, C: PixelColor, const N: usize> DMACapableFrameBufferBackend for &'a mut [C; N] {
108 + unsafe impl<C: PixelColor, const N: usize> DMACapableFrameBufferBackend for &mut [C; N] {
|
Check warning on line 48 in src/backends.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/backends.rs:48:6
|
48 | impl<'a, C: PixelColor, const N: usize> FrameBufferBackend for &'a mut [C; N] {
| ^^ ^^
|
= 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
|
48 - impl<'a, C: PixelColor, const N: usize> FrameBufferBackend for &'a mut [C; N] {
48 + impl<C: PixelColor, const N: usize> FrameBufferBackend for &mut [C; N] {
|