Skip to content

fix: remove deploy from tests #366

fix: remove deploy from tests

fix: remove deploy from tests #366

GitHub Actions / clippy succeeded Feb 15, 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 238 in crates/db/src/core/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `quest_w_reward_items.get(0)`
   --> crates/db/src/core/tests.rs:238:9
    |
238 |         quest_w_reward_items.get(0).unwrap().image_link,
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `quest_w_reward_items.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 236 in crates/db/src/core/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `quest_w_reward_items.get(0)`
   --> crates/db/src/core/tests.rs:236:16
    |
236 |     assert_eq!(quest_w_reward_items.get(0).unwrap().name, "SunGlasses");
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `quest_w_reward_items.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 115 in crates/db/src/core/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `old_versions.get(0)`
   --> crates/db/src/core/tests.rs:115:16
    |
115 |     assert_eq!(old_versions.get(0).unwrap(), &quest_id);
    |                ^^^^^^^^^^^^^^^^^^^ help: try: `old_versions.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 108 in crates/db/src/core/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `quests_by_creator.get(0)`
   --> crates/db/src/core/tests.rs:108:14
    |
108 |     assert!(!quests_by_creator.get(0).unwrap().active);
    |              ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `quests_by_creator.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 107 in crates/db/src/core/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `quests_by_creator.get(0)`
   --> crates/db/src/core/tests.rs:107:16
    |
107 |     assert_eq!(quests_by_creator.get(0).unwrap().id, deactivated_quest);
    |                ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `quests_by_creator.first()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 89 in crates/db/src/core/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `quests_by_creator.get(0)`
  --> crates/db/src/core/tests.rs:89:13
   |
89 |     assert!(quests_by_creator.get(0).unwrap().active);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `quests_by_creator.first()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first

Check warning on line 88 in crates/db/src/core/tests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

warning: accessing first element with `quests_by_creator.get(0)`
  --> crates/db/src/core/tests.rs:88:16
   |
88 |     assert_eq!(quests_by_creator.get(0).unwrap().id, new_quest_id);
   |                ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `quests_by_creator.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 503 in /home/runner/work/quests/quests/target/debug/build/quests_protocol-80959f626496eecf/out/decentraland.quests.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `prost::Message`

warning: unused import: `prost::Message`
   --> /home/runner/work/quests/quests/target/debug/build/quests_protocol-80959f626496eecf/out/decentraland.quests.rs:503:5
    |
503 | use prost::Message;
    |     ^^^^^^^^^^^^^^
    |
    = note: `#[warn(unused_imports)]` on by default