Skip to content

Add Box<str> impl - closes #220 #366

Add Box<str> impl - closes #220

Add Box<str> impl - closes #220 #366

GitHub Actions / clippy succeeded Mar 17, 2024 in 0s

clippy

8 warnings

Details

Results

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

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check warning on line 166 in src/type/impls.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `generics.get(0)`

warning: accessing first element with `generics.get(0)`
   --> src/type/impls.rs:165:17
    |
165 | /                 generics
166 | |                     .get(0)
    | |___________________________^ help: try: `generics.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 153 in src/type/impls.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

accessing first element with `generics.get(0)`

warning: accessing first element with `generics.get(0)`
   --> src/type/impls.rs:153:18
    |
153 |             ty = generics.get(0).cloned()
    |                  ^^^^^^^^^^^^^^^ help: try: `generics.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
    = note: `#[warn(clippy::get_first)]` implied by `#[warn(clippy::all)]`

Check warning on line 142 in src/lang/ts/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

calling `push_str()` using a single-character string literal

warning: calling `push_str()` using a single-character string literal
   --> src/lang/ts/mod.rs:142:5
    |
142 |     s.push_str(";");
    |     ^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `s.push(';')`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str

Check warning on line 135 in src/lang/ts/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

calling `push_str()` using a single-character string literal

warning: calling `push_str()` using a single-character string literal
   --> src/lang/ts/mod.rs:135:5
    |
135 |     s.push_str(")");
    |     ^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `s.push(')')`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str

Check warning on line 125 in src/lang/ts/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

calling `push_str()` using a single-character string literal

warning: calling `push_str()` using a single-character string literal
   --> src/lang/ts/mod.rs:125:5
    |
125 |     s.push_str("(");
    |     ^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `s.push('(')`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
    = note: `#[warn(clippy::single_char_add_str)]` implied by `#[warn(clippy::all)]`

Check warning on line 238 in src/internal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this function has too many arguments (8/7)

warning: this function has too many arguments (8/7)
   --> src/internal.rs:229:5
    |
229 | /     pub fn get_fn_datatype<TMarker, T: SpectaFunction<TMarker>>(
230 | |         _: T,
231 | |         asyncness: bool,
232 | |         name: Cow<'static, str>,
...   |
237 | |         no_return_type: bool,
238 | |     ) -> FunctionDataType {
    | |_________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
note: the lint level is defined here
   --> src/lib.rs:3:9
    |
3   | #![warn(clippy::all, clippy::unwrap_used, clippy::panic)] // TODO: missing_docs
    |         ^^^^^^^^^^^
    = note: `#[warn(clippy::too_many_arguments)]` implied by `#[warn(clippy::all)]`

Check warning on line 66 in src/lang/ts/reserved_terms.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

constant `RESERVED_IDENTS` is never used

warning: constant `RESERVED_IDENTS` is never used
  --> src/lang/ts/reserved_terms.rs:66:18
   |
66 | pub(crate) const RESERVED_IDENTS: &[&str] = &[
   |                  ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

Check warning on line 36 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `selection::*`

warning: unused import: `selection::*`
  --> src/lib.rs:36:9
   |
36 | pub use selection::*;
   |         ^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default