Skip to content

Delete file (tokens all invalidated) #105

Delete file (tokens all invalidated)

Delete file (tokens all invalidated) #105

GitHub Actions / Clippy Output succeeded Jun 15, 2024 in 0s

Clippy Output

13 warnings

Details

Results

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

Versions

  • rustc 1.81.0-nightly (f8e566053 2024-06-14)
  • cargo 1.81.0-nightly (4dcbca118 2024-06-11)
  • clippy 0.1.81 (f8e5660 2024-06-14)

Annotations

Check warning on line 148 in scripty_audio_handler/src/events/voice_tick.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unused variable: `auto_detect_lang`

warning: unused variable: `auto_detect_lang`
   --> scripty_audio_handler/src/events/voice_tick.rs:148:3
    |
148 |         auto_detect_lang,
    |         ^^^^^^^^^^^^^^^^ help: try ignoring the field: `auto_detect_lang: _`
    |
    = note: `#[warn(unused_variables)]` on by default

Check warning on line 24 in scripty_audio_handler/src/connect.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this function depends on never type fallback being `()`

warning: this function depends on never type fallback being `()`
  --> scripty_audio_handler/src/connect.rs:16:1
   |
16 | / pub async fn connect_to_vc(
17 | |     ctx: Context,
18 | |     guild_id: GuildId,
19 | |     channel_id: ChannelId,
...  |
23 | |     record_transcriptions: bool,
24 | | ) -> Result<(), Error> {
   | |______________________^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
   = help: specify the types explicitly
   = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default

Check warning on line 9 in scripty_botlists/src/lists/disforge_com/models.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

field `message` is never read

warning: field `message` is never read
 --> scripty_botlists/src/lists/disforge_com/models.rs:9:6
  |
7 | pub struct PostStatsResponse {
  |            ----------------- field in this struct
8 |     pub status:  String,
9 |     pub message: String,
  |         ^^^^^^^
  |
  = note: `PostStatsResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis

Check warning on line 11 in scripty_botlists/src/lists/discordextremelist_xyz/models.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

field `status` is never read

warning: field `status` is never read
  --> scripty_botlists/src/lists/discordextremelist_xyz/models.rs:11:6
   |
9  | pub struct PostStatsResponse {
   |            ----------------- field in this struct
10 |     pub error:  bool,
11 |     pub status: u16,
   |         ^^^^^^
   |
   = note: `PostStatsResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis

Check warning on line 10 in scripty_botlists/src/lists/discord_bots_gg/models.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

fields `code` and `message` are never read

warning: fields `code` and `message` are never read
  --> scripty_botlists/src/lists/discord_bots_gg/models.rs:10:6
   |
9  | pub struct PostStatsResponse {
   |            ----------------- fields in this struct
10 |     pub code:    u16,
   |         ^^^^
11 |     pub message: String,
   |         ^^^^^^^
   |
   = note: `PostStatsResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default

Check warning on line 2 in scripty_data_storage/src/cache/voice.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

function `init_voice_cache_async` is never used

warning: function `init_voice_cache_async` is never used
 --> scripty_data_storage/src/cache/voice.rs:2:14
  |
2 | pub async fn init_voice_cache_async() -> Result<(), scripty_redis::redis::RedisError> {
  |              ^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 2 in scripty_data_storage/src/cache/text.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

function `init_text_cache_async` is never used

warning: function `init_text_cache_async` is never used
 --> scripty_data_storage/src/cache/text.rs:2:14
  |
2 | pub async fn init_text_cache_async() -> Result<(), scripty_redis::redis::RedisError> {
  |              ^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

Check warning on line 2 in scripty_data_storage/src/cache/voice.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this function depends on never type fallback being `()`

warning: this function depends on never type fallback being `()`
 --> scripty_data_storage/src/cache/voice.rs:2:1
  |
2 | pub async fn init_voice_cache_async() -> Result<(), scripty_redis::redis::RedisError> {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
  = help: specify the types explicitly

Check warning on line 2 in scripty_data_storage/src/cache/text.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this function depends on never type fallback being `()`

warning: this function depends on never type fallback being `()`
 --> scripty_data_storage/src/cache/text.rs:2:1
  |
2 | pub async fn init_text_cache_async() -> Result<(), scripty_redis::redis::RedisError> {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
  = help: specify the types explicitly
  = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default

Check warning on line 82 in scripty_automod/src/types.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

this function has too many arguments (8/7)

warning: this function has too many arguments (8/7)
  --> scripty_automod/src/types.rs:73:2
   |
73 | /     pub fn new(
74 | |         guild_id: u64,
75 | |         internal_id: i32,
76 | |         enabled: bool,
...  |
81 | |         auto_join_voice: bool,
82 | |     ) -> Self {
   | |_____________^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
   = note: `#[warn(clippy::too_many_arguments)]` on by default

Check warning on line 5 in scripty_metrics/src/rt_metrics.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unexpected `cfg` condition name: `tokio_unstable`

warning: unexpected `cfg` condition name: `tokio_unstable`
 --> scripty_metrics/src/rt_metrics.rs:5:11
  |
5 | #[cfg(not(tokio_unstable))]
  |           ^^^^^^^^^^^^^^
  |
  = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
  = help: consider using a Cargo feature instead
  = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
           [lints.rust]
           unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] }
  = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tokio_unstable)");` to the top of the `build.rs`
  = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
  = note: `#[warn(unexpected_cfgs)]` on by default

Check warning on line 15 in scripty_utils/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

struct `ShardManagerWrapper` is never constructed

warning: struct `ShardManagerWrapper` is never constructed
  --> scripty_utils/src/lib.rs:15:12
   |
15 | pub struct ShardManagerWrapper(Arc<ShardManager>);
   |            ^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

Check warning on line 16 in scripty_config/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

unexpected `cfg` condition name: `ignore_os`

warning: unexpected `cfg` condition name: `ignore_os`
  --> scripty_config/src/lib.rs:16:41
   |
16 | #[cfg(all(not(target_os = "linux"), not(ignore_os)))]
   |                                         ^^^^^^^^^
   |
   = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ignore_os)'] }
   = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(ignore_os)");` to the top of the `build.rs`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
   = note: `#[warn(unexpected_cfgs)]` on by default