Skip to content

simplify string enum with strum #738

simplify string enum with strum

simplify string enum with strum #738

GitHub Actions / clippy succeeded Oct 30, 2023 in 0s

clippy

11 warnings

Details

Results

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

Versions

  • rustc 1.75.0-nightly (608e9682f 2023-10-29)
  • cargo 1.75.0-nightly (708383d62 2023-10-27)
  • clippy 0.1.75 (608e968 2023-10-29)

Annotations

Check warning on line 235 in src/bin/bundle_calcit.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `ys.get(0)`
   --> src/bin/bundle_calcit.rs:235:20
    |
235 |             match (ys.get(0), ys.get(1)) {
    |                    ^^^^^^^^^ help: try: `ys.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 227 in src/bin/bundle_calcit.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `xs.get(0)`
   --> src/bin/bundle_calcit.rs:227:13
    |
227 |             xs.get(0)
    |             ^^^^^^^^^ help: try: `xs.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 220 in src/bin/bundle_calcit.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `ns_form.get(0)`
   --> src/bin/bundle_calcit.rs:220:18
    |
220 |           match (ns_form.get(0), ns_form.get(1)) {
    |                  ^^^^^^^^^^^^^^ help: try: `ns_form.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 219 in src/bin/bundle_calcit.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `xs.get(0)`
   --> src/bin/bundle_calcit.rs:219:70
    |
219 |         let (ns_name, ns_code) = if let Some(Cirru::List(ns_form)) = xs.get(0) {
    |                                                                      ^^^^^^^^^ help: try: `xs.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
    = note: `#[warn(clippy::get_first)]` on by default

Check warning on line 79 in src/program.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `xs.get(0)`
  --> src/program.rs:79:31
   |
79 |     Cirru::List(xs) => match (xs.get(0), xs.get(1), xs.get(2)) {
   |                               ^^^^^^^^^ help: try: `xs.first()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 38 in src/program.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `xs.get(0)`
  --> src/program.rs:38:13
   |
38 |       match xs.get(0) {
   |             ^^^^^^^^^ help: try: `xs.first()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 442 in src/builtins/lists.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `extra.get(0)`
   --> src/builtins/lists.rs:442:26
    |
442 |                 let x1 = extra.get(0).ok_or(CalcitErr::use_msg_stack_location(
    |                          ^^^^^^^^^^^^ help: try: `extra.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 372 in src/builtins/lists.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `extra.get(0)`
   --> src/builtins/lists.rs:372:26
    |
372 |                 let x1 = extra.get(0).ok_or(CalcitErr::use_msg_stack_location(
    |                          ^^^^^^^^^^^^ help: try: `extra.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 329 in src/builtins/lists.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `extra.get(0)`
   --> src/builtins/lists.rs:329:26
    |
329 |                 let x1 = extra.get(0).ok_or(CalcitErr::use_msg_stack_location(
    |                          ^^^^^^^^^^^^ help: try: `extra.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 286 in src/builtins/lists.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `extra.get(0)`
   --> src/builtins/lists.rs:286:26
    |
286 |                 let x1 = extra.get(0).ok_or(CalcitErr::use_msg_stack_location(
    |                          ^^^^^^^^^^^^ help: try: `extra.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 58 in src/data/edn.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `extra.get(0)`
  --> src/data/edn.rs:58:24
   |
58 |             let data = extra.get(0).ok_or(format!("quote expected 1 argument, got: {:?}", extra))?; // TODO more types to handle
   |                        ^^^^^^^^^^^^ help: try: `extra.first()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
   = note: `#[warn(clippy::get_first)]` on by default