Skip to content

rust-next

rust-next #13

GitHub Actions / clippy failed Jan 3, 2025 in 0s

clippy

9 errors

Details

Results

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

Versions

  • rustc 1.83.0 (90b35a623 2024-11-26)
  • cargo 1.83.0 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (90b35a6 2024-11-26)

Annotations

Check failure on line 262 in crates/dictgen/src/trie.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 's

error: the following explicit lifetimes could be elided: 's
   --> crates/dictgen/src/trie.rs:262:10
    |
262 |     impl<'s, V> DynChild<'s, V> {
    |          ^^              ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
262 -     impl<'s, V> DynChild<'s, V> {
262 +     impl<V> DynChild<'_, V> {
    |

Check failure on line 33 in crates/dictgen/src/trie.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

manual check for common ascii range

error: manual check for common ascii range
  --> crates/dictgen/src/trie.rs:33:35
   |
33 |                         } else if (b'A'..=b'Z').contains(&byte) {
   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `byte.is_ascii_uppercase()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check

Check failure on line 31 in crates/dictgen/src/trie.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

manual check for common ascii range

error: manual check for common ascii range
  --> crates/dictgen/src/trie.rs:31:40
   |
31 |                         let index = if (b'a'..=b'z').contains(&byte) {
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `byte.is_ascii_lowercase()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
   = note: `-D clippy::manual-is-ascii-check` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::manual_is_ascii_check)]`

Check failure on line 125 in crates/dictgen/src/table.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 's

error: the following explicit lifetimes could be elided: 's
   --> crates/dictgen/src/table.rs:125:6
    |
125 | impl<'s> core::fmt::Display for InsensitiveStr<'s> {
    |      ^^                                        ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
125 - impl<'s> core::fmt::Display for InsensitiveStr<'s> {
125 + impl core::fmt::Display for InsensitiveStr<'_> {
    |

Check failure on line 118 in crates/dictgen/src/table.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 's

error: the following explicit lifetimes could be elided: 's
   --> crates/dictgen/src/table.rs:118:6
    |
118 | impl<'s> core::fmt::Debug for InsensitiveStr<'s> {
    |      ^^                                      ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
118 - impl<'s> core::fmt::Debug for InsensitiveStr<'s> {
118 + impl core::fmt::Debug for InsensitiveStr<'_> {
    |

Check failure on line 111 in crates/dictgen/src/table.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 's

error: the following explicit lifetimes could be elided: 's
   --> crates/dictgen/src/table.rs:111:6
    |
111 | impl<'s> core::hash::Hash for InsensitiveStr<'s> {
    |      ^^                                      ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
111 - impl<'s> core::hash::Hash for InsensitiveStr<'s> {
111 + impl core::hash::Hash for InsensitiveStr<'_> {
    |

Check failure on line 109 in crates/dictgen/src/table.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 's

error: the following explicit lifetimes could be elided: 's
   --> crates/dictgen/src/table.rs:109:6
    |
109 | impl<'s> Eq for InsensitiveStr<'s> {}
    |      ^^                        ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
109 - impl<'s> Eq for InsensitiveStr<'s> {}
109 + impl Eq for InsensitiveStr<'_> {}
    |

Check failure on line 73 in crates/dictgen/src/map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 's

error: the following explicit lifetimes could be elided: 's
  --> crates/dictgen/src/map.rs:73:6
   |
73 | impl<'s> phf_shared::FmtConst for crate::InsensitiveStr<'s> {
   |      ^^                                                 ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
   |
73 - impl<'s> phf_shared::FmtConst for crate::InsensitiveStr<'s> {
73 + impl phf_shared::FmtConst for crate::InsensitiveStr<'_> {
   |

Check failure on line 66 in crates/dictgen/src/map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 's

error: the following explicit lifetimes could be elided: 's
  --> crates/dictgen/src/map.rs:66:6
   |
66 | impl<'s> phf_shared::PhfHash for crate::InsensitiveStr<'s> {
   |      ^^                                                ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
   |
66 - impl<'s> phf_shared::PhfHash for crate::InsensitiveStr<'s> {
66 + impl phf_shared::PhfHash for crate::InsensitiveStr<'_> {
   |