Skip to content

[wip] Payments/subscriptions support #674

[wip] Payments/subscriptions support

[wip] Payments/subscriptions support #674

Triggered via push August 3, 2024 06:06
Status Failure
Total duration 22s
Artifacts

security.yml

on: push
security_audit
11s
security_audit
Fit to window
Zoom out
Zoom in

Annotations

1 error and 74 warnings
security_audit
Critical vulnerabilities were found, marking check as failed
security_audit
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/audit-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
security_audit
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/audit-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
security_audit
1 vulnerabilities found!
unexpected `cfg` condition name: `tarpaulin_include`: src/main.rs#L21
warning: unexpected `cfg` condition name: `tarpaulin_include` --> src/main.rs:21:11 | 21 | #[cfg(not(tarpaulin_include))] | ^^^^^^^^^^^^^^^^^ | = 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(tarpaulin_include)'] } = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin_include)");` 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
importing legacy numeric constants: src/util/webhook.rs#L8
warning: importing legacy numeric constants --> src/util/webhook.rs:8:5 | 8 | use std::usize; | ^^^^^^^^^^ | = help: remove this import = note: then `usize::<CONST>` will resolve to the respective associated constant = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: `#[warn(clippy::legacy_numeric_constants)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: src/routes/internal/billing.rs#L865
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/routes/internal/billing.rs:865:91 | 865 | crate::database::models::user_item::User::clear_caches(&[(user.id.into(), None)], &redis) | ^^^^^^ help: change this to: `redis` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
deref on an immutable reference: src/routes/internal/billing.rs#L862
warning: deref on an immutable reference --> src/routes/internal/billing.rs:862:18 | 862 | .execute(&*pool) | ^^^^^^ help: if you would like to reborrow, try removing `&*`: `pool` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref = note: `#[warn(clippy::borrow_deref_ref)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: src/routes/internal/billing.rs#L592
warning: this expression creates a reference which is immediately dereferenced by the compiler --> src/routes/internal/billing.rs:592:85 | 592 | crate::database::models::user_item::User::get_id(user_id, pool, &redis).await?; | ^^^^^^ help: change this to: `redis` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
deref which would be done by auto-deref: src/routes/internal/billing.rs#L571
warning: deref which would be done by auto-deref --> src/routes/internal/billing.rs:571:9 | 571 | &*dotenvy::var("STRIPE_WEBHOOK_SECRET")?, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dotenvy::var("STRIPE_WEBHOOK_SECRET")?` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
deref which would be done by auto-deref: src/routes/internal/billing.rs#L569
warning: deref which would be done by auto-deref --> src/routes/internal/billing.rs:569:9 | 569 | &*payload, | ^^^^^^^^^ help: try: `&payload` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
deref which would be done by auto-deref: src/routes/internal/billing.rs#L470
warning: deref which would be done by auto-deref --> src/routes/internal/billing.rs:470:53 | 470 | let customer_id = get_or_create_customer(&user, &*stripe_client, &pool, &redis).await?; | ^^^^^^^^^^^^^^^ help: try: `&stripe_client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
deref which would be done by auto-deref: src/routes/internal/billing.rs#L350
warning: deref which would be done by auto-deref --> src/routes/internal/billing.rs:350:50 | 350 | let customer = get_or_create_customer(&user, &*stripe_client, &pool, &redis).await?; | ^^^^^^^^^^^^^^^ help: try: `&stripe_client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
deref which would be done by auto-deref: src/routes/internal/billing.rs#L293
warning: deref which would be done by auto-deref --> src/routes/internal/billing.rs:293:50 | 293 | let customer = get_or_create_customer(&user, &*stripe_client, &pool, &redis).await?; | ^^^^^^^^^^^^^^^ help: try: `&stripe_client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
deref which would be done by auto-deref: src/routes/internal/billing.rs#L239
warning: deref which would be done by auto-deref --> src/routes/internal/billing.rs:239:50 | 239 | let customer = get_or_create_customer(&user, &*stripe_client, &pool, &redis).await?; | ^^^^^^^^^^^^^^^ help: try: `&stripe_client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
deref which would be done by auto-deref: src/routes/internal/billing.rs#L176
warning: deref which would be done by auto-deref --> src/routes/internal/billing.rs:176:53 | 176 | let customer_id = get_or_create_customer(&user, &*stripe_client, &pool, &redis).await?; | ^^^^^^^^^^^^^^^ help: try: `&stripe_client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref = note: `#[warn(clippy::explicit_auto_deref)]` on by default
the borrowed expression implements the required traits: src/file_hosting/backblaze/authorization.rs#L59
warning: the borrowed expression implements the required traits --> src/file_hosting/backblaze/authorization.rs:59:15 | 59 | .post(&format!("{}/b2api/v2/b2_get_upload_url", authorization_data.api_url).to_string()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{}/b2api/v2/b2_get_upload_url", authorization_data.api_url).to_string()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
fields `report_type`, `item_id`, `item_type`, and `body` are never read: src/routes/v2/reports.rs#L23
warning: fields `report_type`, `item_id`, `item_type`, and `body` are never read --> src/routes/v2/reports.rs:23:9 | 22 | pub struct CreateReport { | ------------ fields in this struct 23 | pub report_type: String, | ^^^^^^^^^^^ 24 | pub item_id: String, | ^^^^^^^ 25 | pub item_type: ItemType, | ^^^^^^^^^ 26 | pub body: String, | ^^^^
field `bio` is never read: src/routes/internal/flows.rs#L685
warning: field `bio` is never read --> src/routes/internal/flows.rs:685:25 | 681 | pub struct GoogleUser { | ---------- field in this struct ... 685 | pub bio: Option<String>, | ^^^ | = note: `GoogleUser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
fields `description` and `disclosure` are never read: src/queue/payouts.rs#L294
warning: fields `description` and `disclosure` are never read --> src/queue/payouts.rs:294:21 | 290 | pub struct Product { | ------- fields in this struct ... 294 | pub description: String, | ^^^^^^^^^^^ 295 | pub disclosure: String, | ^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/validate/resourcepack.rs#L58
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(), | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/validate/resourcepack.rs#L54
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(), | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/validate/resourcepack.rs#L20
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(), | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/validate/quilt.rs#L19
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(), | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/validate/forge.rs#L63
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(), | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/validate/forge.rs#L59
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(), | ^^^^^^^^^^^^^^^^^^
use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead: src/validate/forge.rs#L20
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(), | ^^^^^^^^^^^^^^^^^^
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#L577
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) | ^^^^^^^^^^
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#L80
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) | ^^^^^^^^^^
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#L397
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) | ^^^^^^^^^^
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#L613
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) | ^^^^^^^^^^
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#L202
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) | ^^^^^^^^^^
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#L168
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) | ^^^^^^^^^^
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#L132
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) | ^^^^^^^^^^
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#L281
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) | ^^^^^^^^^^
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#L263
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) | ^^^^^^^^^^
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#L433
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) | ^^^^^^^^^^
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#L101
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) | ^^^^^^^^^^
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#L58
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) | ^^^^^^^^^^
unused variable: `redis`: src/routes/internal/billing.rs#L872
warning: unused variable: `redis` --> src/routes/internal/billing.rs:872:34 | 872 | pub async fn task(pool: &PgPool, redis: &RedisPool) -> Result<(), ApiError> { | ^^^^^ help: if this is intentional, prefix it with an underscore: `_redis`
unused variable: `pool`: src/routes/internal/billing.rs#L872
warning: unused variable: `pool` --> src/routes/internal/billing.rs:872:19 | 872 | pub async fn task(pool: &PgPool, redis: &RedisPool) -> Result<(), ApiError> { | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool`
unused variable: `user_subscription_id`: src/routes/internal/billing.rs#L519
warning: unused variable: `user_subscription_id` --> src/routes/internal/billing.rs:519:17 | 519 | let user_subscription_id = generate_user_subscription_id(&mut transaction).await?; | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_subscription_id`
unused variable: `customer_id`: src/routes/internal/billing.rs#L470
warning: unused variable: `customer_id` --> src/routes/internal/billing.rs:470:9 | 470 | let customer_id = get_or_create_customer(&user, &*stripe_client, &pool, &redis).await?; | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_customer_id` | = note: `#[warn(unused_variables)]` on by default
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#L52
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) | ^^^^^^^^^^
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#L101
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) | ^^^^^^^^^^
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/database/models/user_item.rs#L487
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/database/models/user_item.rs:487:14 | 487 | .fetch_many(&mut **transaction) | ^^^^^^^^^^
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/database/models/user_item.rs#L469
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/database/models/user_item.rs:469:14 | 469 | .fetch_many(&mut **transaction) | ^^^^^^^^^^
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/database/models/user_item.rs#L436
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/database/models/user_item.rs:436:14 | 436 | .fetch_many(&mut **transaction) | ^^^^^^^^^^
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/database/models/user_item.rs#L347
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/database/models/user_item.rs:347:10 | 347 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/user_item.rs#L323
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/database/models/user_item.rs:323:10 | 323 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/user_item.rs#L299
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/database/models/user_item.rs:299:10 | 299 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/user_item.rs#L270
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/database/models/user_item.rs:270:10 | 270 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/thread_item.rs#L239
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/database/models/thread_item.rs:239:10 | 239 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/thread_item.rs#L147
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/database/models/thread_item.rs:147:10 | 147 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/team_item.rs#L303
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/database/models/team_item.rs:303:10 | 303 | .fetch_many(executor) | ^^^^^^^^^^
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/database/models/session_item.rs#L223
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/database/models/session_item.rs:223:10 | 223 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/report_item.rs#L89
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/database/models/report_item.rs:89:10 | 89 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/project_item.rs#L877
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/database/models/project_item.rs:877:10 | 877 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/project_item.rs#L446
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/database/models/project_item.rs:446:14 | 446 | .fetch_many(&mut **transaction) | ^^^^^^^^^^
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/database/models/project_item.rs#L361
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/database/models/project_item.rs:361:14 | 361 | .fetch_many(&mut **transaction) | ^^^^^^^^^^
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/database/models/payout_item.rs#L77
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/database/models/payout_item.rs:77:10 | 77 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/pat_item.rs#L170
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/database/models/pat_item.rs:170:10 | 170 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/notification_item.rs#L288
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/database/models/notification_item.rs:288:10 | 288 | .fetch_many(&mut **transaction) | ^^^^^^^^^^
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/database/models/notification_item.rs#L245
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/database/models/notification_item.rs:245:10 | 245 | .fetch_many(&mut **transaction) | ^^^^^^^^^^
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/database/models/notification_item.rs#L176
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/database/models/notification_item.rs:176:14 | 176 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/notification_item.rs#L113
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/database/models/notification_item.rs:113:14 | 113 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/loader_fields.rs#L454
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/database/models/loader_fields.rs:454:10 | 454 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/loader_fields.rs#L154
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/database/models/loader_fields.rs:154:10 | 154 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/loader_fields.rs#L63
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/database/models/loader_fields.rs:63:10 | 63 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/image_item.rs#L138
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/database/models/image_item.rs:138:10 | 138 | .fetch_many(&mut **transaction) | ^^^^^^^^^^
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/database/models/categories.rs#L275
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/database/models/categories.rs:275:10 | 275 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/categories.rs#L225
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/database/models/categories.rs:225:10 | 225 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/categories.rs#L169
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/database/models/categories.rs:169:10 | 169 | .fetch_many(exec) | ^^^^^^^^^^
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/database/models/categories.rs#L111
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/database/models/categories.rs:111:10 | 111 | .fetch_many(exec) | ^^^^^^^^^^
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/auth/checks.rs#L143
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/auth/checks.rs:143:10 | 143 | .fetch_many(pool) | ^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default