clippy
58 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 58 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.80.1 (3f5fd8dd4 2024-08-06)
- cargo 1.80.1 (376290515 2024-07-16)
- clippy 0.1.80 (3f5fd8d 2024-08-06)
Annotations
Check warning on line 267 in src/lib.rs
github-actions / clippy
unused variable: `stripe_client_ref`
warning: unused variable: `stripe_client_ref`
--> src/lib.rs:267:13
|
267 | let stripe_client_ref = stripe_client.clone();
| ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stripe_client_ref`
Check warning on line 266 in src/lib.rs
github-actions / clippy
unused variable: `redis_ref`
warning: unused variable: `redis_ref`
--> src/lib.rs:266:13
|
266 | let redis_ref = redis_pool.clone();
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_redis_ref`
Check warning on line 265 in src/lib.rs
github-actions / clippy
unused variable: `pool_ref`
warning: unused variable: `pool_ref`
--> src/lib.rs:265:13
|
265 | let pool_ref = pool.clone();
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pool_ref`
|
= note: `#[warn(unused_variables)]` on by default
Check warning on line 230 in src/database/models/product_item.rs
github-actions / clippy
unused import: `futures_util::TryStreamExt`
warning: unused import: `futures_util::TryStreamExt`
--> src/database/models/product_item.rs:230:13
|
230 | use futures_util::TryStreamExt;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 58 in src/validate/resourcepack.rs
github-actions / clippy
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
--> src/validate/resourcepack.rs:58:32
|
58 | NaiveDateTime::from_timestamp_opt(1370651522, 0).unwrap(),
| ^^^^^^^^^^^^^^^^^^
Check warning on line 54 in src/validate/resourcepack.rs
github-actions / clippy
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
--> src/validate/resourcepack.rs:54:32
|
54 | NaiveDateTime::from_timestamp_opt(1289339999, 0).unwrap(),
| ^^^^^^^^^^^^^^^^^^
Check warning on line 20 in src/validate/resourcepack.rs
github-actions / clippy
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
--> src/validate/resourcepack.rs:20:28
|
20 | NaiveDateTime::from_timestamp_opt(1371137542, 0).unwrap(),
| ^^^^^^^^^^^^^^^^^^
Check warning on line 19 in src/validate/quilt.rs
github-actions / clippy
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
--> src/validate/quilt.rs:19:28
|
19 | NaiveDateTime::from_timestamp_opt(1646070100, 0).unwrap(),
| ^^^^^^^^^^^^^^^^^^
Check warning on line 63 in src/validate/forge.rs
github-actions / clippy
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
--> src/validate/forge.rs:63:32
|
63 | NaiveDateTime::from_timestamp_opt(1540122066, 0).unwrap(),
| ^^^^^^^^^^^^^^^^^^
Check warning on line 59 in src/validate/forge.rs
github-actions / clippy
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
--> src/validate/forge.rs:59:32
|
59 | NaiveDateTime::from_timestamp_opt(0, 0).unwrap(),
| ^^^^^^^^^^^^^^^^^^
Check warning on line 20 in src/validate/forge.rs
github-actions / clippy
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
--> src/validate/forge.rs:20:28
|
20 | NaiveDateTime::from_timestamp_opt(1540122067, 0).unwrap(),
| ^^^^^^^^^^^^^^^^^^
Check warning on line 577 in src/routes/v3/organizations.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/organizations.rs:577:6
|
577 | .fetch_many(&mut *transaction)
| ^^^^^^^^^^
Check warning on line 80 in src/routes/v3/organizations.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/organizations.rs:80:6
|
80 | .fetch_many(&**pool)
| ^^^^^^^^^^
Check warning on line 397 in src/routes/v3/version_creation.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/version_creation.rs:397:6
|
397 | .fetch_many(&mut **transaction)
| ^^^^^^^^^^
Check warning on line 613 in src/routes/v3/users.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/users.rs:613:10
|
613 | .fetch_many(&**pool)
| ^^^^^^^^^^
Check warning on line 202 in src/routes/v3/threads.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/threads.rs:202:14
|
202 | .fetch_many(&***pool)
| ^^^^^^^^^^
Check warning on line 168 in src/routes/v3/threads.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/threads.rs:168:14
|
168 | .fetch_many(&***pool)
| ^^^^^^^^^^
Check warning on line 132 in src/routes/v3/threads.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/threads.rs:132:14
|
132 | .fetch_many(&***pool)
| ^^^^^^^^^^
Check warning on line 281 in src/routes/v3/reports.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/reports.rs:281:10
|
281 | .fetch_many(&**pool)
| ^^^^^^^^^^
Check warning on line 263 in src/routes/v3/reports.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/reports.rs:263:10
|
263 | .fetch_many(&**pool)
| ^^^^^^^^^^
Check warning on line 433 in src/routes/v3/projects.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/projects.rs:433:22
|
433 | .fetch_many(&mut *transaction)
| ^^^^^^^^^^
Check warning on line 101 in src/routes/v3/projects.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/v3/projects.rs:101:6
|
101 | .fetch_many(&**pool)
| ^^^^^^^^^^
Check warning on line 58 in src/routes/internal/moderation.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/routes/internal/moderation.rs:58:6
|
58 | .fetch_many(&**pool)
| ^^^^^^^^^^
Check warning on line 52 in src/search/indexing/local_import.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/search/indexing/local_import.rs:52:10
|
52 | .fetch_many(pool)
| ^^^^^^^^^^
Check warning on line 101 in src/queue/session.rs
github-actions / clippy
use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
warning: use of deprecated method `sqlx::query::Map::<'q, DB, F, A>::fetch_many`: Only the SQLite driver supports multiple statements in one prepared statement and that behavior is deprecated. Use `sqlx::raw_sql()` instead.
--> src/queue/session.rs:101:14
|
101 | .fetch_many(&mut *transaction)
| ^^^^^^^^^^