Skip to content

build(deps): bump sea-orm from 0.12.15 to 1.0.1 #642

build(deps): bump sea-orm from 0.12.15 to 1.0.1

build(deps): bump sea-orm from 0.12.15 to 1.0.1 #642

GitHub Actions / clippy failed Sep 13, 2024 in 3s

clippy

186 errors

Details

Results

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

Versions

  • rustc 1.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check failure on line 107 in challenges/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/main.rs:107:44
    |
107 |         .with(DbTransactionMiddleware::new(db))
    |               ---------------------------- ^^ expected `DatabaseConnection`, found `sea_orm::DatabaseConnection`
    |               |
    |               arguments to this function are incorrect
    |
    = note: `sea_orm::DatabaseConnection` and `DatabaseConnection` have similar names, but are actually distinct types
note: `sea_orm::DatabaseConnection` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/database/db_connection.rs:20:1
    |
20  | pub enum DatabaseConnection {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `DatabaseConnection` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-0.12.15/src/database/db_connection.rs:19:1
    |
19  | pub enum DatabaseConnection {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `sea_orm` are being used?
note: associated function defined here
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/poem-ext-0.12.0/src/db.rs:65:12
    |
65  |     pub fn new(db: DatabaseConnection) -> Self {
    |            ^^^

Check failure on line 666 in challenges/src/services/subtasks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/services/subtasks.rs:666:18
    |
666 |         retired: data.retired.update(subtask.retired),
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sea_orm::ActiveValue<bool>`, found `ActiveValue<bool>`
    |
    = note: `ActiveValue<bool>` and `sea_orm::ActiveValue<bool>` have similar names, but are actually distinct types
note: `ActiveValue<bool>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-0.12.15/src/entity/active_model.rs:39:1
    |
39  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
note: `sea_orm::ActiveValue<bool>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/entity/active_model.rs:40:1
    |
40  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `sea_orm` are being used?

Check failure on line 665 in challenges/src/services/subtasks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/services/subtasks.rs:665:18
    |
665 |         enabled: data.enabled.update(subtask.enabled),
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sea_orm::ActiveValue<bool>`, found `ActiveValue<bool>`
    |
    = note: `ActiveValue<bool>` and `sea_orm::ActiveValue<bool>` have similar names, but are actually distinct types
note: `ActiveValue<bool>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-0.12.15/src/entity/active_model.rs:39:1
    |
39  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
note: `sea_orm::ActiveValue<bool>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/entity/active_model.rs:40:1
    |
40  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `sea_orm` are being used?

Check failure on line 664 in challenges/src/services/subtasks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/services/subtasks.rs:664:16
    |
664 |         coins: data.coins.map(|x| x as _).update(subtask.coins),
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sea_orm::ActiveValue<i64>`, found `ActiveValue<i64>`
    |
    = note: `ActiveValue<i64>` and `sea_orm::ActiveValue<i64>` have similar names, but are actually distinct types
note: `ActiveValue<i64>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-0.12.15/src/entity/active_model.rs:39:1
    |
39  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
note: `sea_orm::ActiveValue<i64>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/entity/active_model.rs:40:1
    |
40  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `sea_orm` are being used?

Check failure on line 663 in challenges/src/services/subtasks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/services/subtasks.rs:663:13
    |
663 |         xp: data.xp.map(|x| x as _).update(subtask.xp),
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sea_orm::ActiveValue<i64>`, found `ActiveValue<i64>`
    |
    = note: `ActiveValue<i64>` and `sea_orm::ActiveValue<i64>` have similar names, but are actually distinct types
note: `ActiveValue<i64>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-0.12.15/src/entity/active_model.rs:39:1
    |
39  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
note: `sea_orm::ActiveValue<i64>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/entity/active_model.rs:40:1
    |
40  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `sea_orm` are being used?

Check failure on line 659 in challenges/src/services/subtasks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/services/subtasks.rs:659:18
    |
659 |         task_id: data.task_id.update(subtask.task_id),
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `sea_orm::ActiveValue<uuid::Uuid>`, found `ActiveValue<Uuid>`
    |
    = note: `ActiveValue<Uuid>` and `sea_orm::ActiveValue<uuid::Uuid>` have similar names, but are actually distinct types
note: `ActiveValue<Uuid>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-0.12.15/src/entity/active_model.rs:39:1
    |
39  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
note: `sea_orm::ActiveValue<uuid::Uuid>` is defined in crate `sea_orm`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/entity/active_model.rs:40:1
    |
40  | pub enum ActiveValue<V>
    | ^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `sea_orm` are being used?

Check failure on line 659 in challenges/src/services/subtasks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_query::value::Value: std::convert::From<uuid::Uuid>` is not satisfied

error[E0277]: the trait bound `sea_query::value::Value: std::convert::From<uuid::Uuid>` is not satisfied
   --> challenges/src/services/subtasks.rs:659:31
    |
659 |         task_id: data.task_id.update(subtask.task_id),
    |                               ^^^^^^ the trait `std::convert::From<uuid::Uuid>` is not implemented for `sea_query::value::Value`, which is required by `uuid::Uuid: std::convert::Into<sea_query::value::Value>`
    |
    = help: the following other types implement trait `std::convert::From<T>`:
              `sea_query::value::Value` implements `std::convert::From<&[u8]>`
              `sea_query::value::Value` implements `std::convert::From<&std::string::String>`
              `sea_query::value::Value` implements `std::convert::From<&str>`
              `sea_query::value::Value` implements `std::convert::From<bool>`
              `sea_query::value::Value` implements `std::convert::From<char>`
              `sea_query::value::Value` implements `std::convert::From<f32>`
              `sea_query::value::Value` implements `std::convert::From<f64>`
              `sea_query::value::Value` implements `std::convert::From<i16>`
            and 11 others
    = note: required for `uuid::Uuid` to implement `std::convert::Into<sea_query::value::Value>`
note: required by a bound in `poem_ext::patch_value::PatchValue::<T>::update`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/poem-ext-0.12.0/src/patch_value.rs:98:12
    |
96  |     pub fn update(self, old: T) -> ActiveValue<T>
    |            ------ required by a bound in this associated function
97  |     where
98  |         T: Into<sea_orm::Value>,
    |            ^^^^^^^^^^^^^^^^^^^^ required by this bound in `PatchValue::<T>::update`

Check failure on line 164 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/reports.rs:164:27
    |
164 |             report.delete(&***db).await?;
    |                    ------ ^^^^^^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |                    |
    |                    required by a bound introduced by this call
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::ModelTrait::delete`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/entity/model.rs:44:12
    |
41  |     async fn delete<'a, A, C>(self, db: &'a C) -> Result<DeleteResult, DbErr>
    |              ------ required by a bound in this associated function
...
44  |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `ModelTrait::delete`

Check failure on line 158 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/reports.rs:158:32
    |
158 |                 subtask.delete(&***db).await?;
    |                         ------ ^^^^^^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |                         |
    |                         required by a bound introduced by this call
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::ModelTrait::delete`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/entity/model.rs:44:12
    |
41  |     async fn delete<'a, A, C>(self, db: &'a C) -> Result<DeleteResult, DbErr>
    |              ------ required by a bound in this associated function
...
44  |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `ModelTrait::delete`

Check failure on line 150 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/endpoints/subtasks/reports.rs:150:21
    |
149 |                 ban_user(
    |                 -------- arguments to this function are incorrect
150 |                     &db,
    |                     ^^^ expected `&DatabaseTransaction`, found `&Data<&Arc<DatabaseTransaction>>`
    |
    = note: expected reference `&sea_orm::DatabaseTransaction`
               found reference `&poem::web::Data<&std::sync::Arc<sea_orm::database::transaction::DatabaseTransaction>>`
note: function defined here
   --> challenges/src/endpoints/subtasks/reports.rs:240:10
    |
240 | async fn ban_user(
    |          ^^^^^^^^
241 |     db: &DatabaseTransaction,
    |     ------------------------

Check failure on line 144 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/reports.rs:144:25
    |
144 |                 .update(&***db)
    |                  ------ ^^^^^^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |                  |
    |                  required by a bound introduced by this call
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::ActiveModelTrait::update`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/entity/active_model.rs:402:12
    |
398 |     async fn update<'a, C>(self, db: &'a C) -> Result<<Self::Entity as EntityTrait>::Model, DbErr>
    |              ------ required by a bound in this associated function
...
402 |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `ActiveModelTrait::update`

Check failure on line 132 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/endpoints/subtasks/reports.rs:132:21
    |
131 |                 ban_user(
    |                 -------- arguments to this function are incorrect
132 |                     &db,
    |                     ^^^ expected `&DatabaseTransaction`, found `&Data<&Arc<DatabaseTransaction>>`
    |
    = note: expected reference `&sea_orm::DatabaseTransaction`
               found reference `&poem::web::Data<&std::sync::Arc<sea_orm::database::transaction::DatabaseTransaction>>`
note: function defined here
   --> challenges/src/endpoints/subtasks/reports.rs:240:10
    |
240 | async fn ban_user(
    |          ^^^^^^^^
241 |     db: &DatabaseTransaction,
    |     ------------------------

Check failure on line 120 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/reports.rs:120:18
    |
120 |                 .await?
    |                  ^^^^^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::executor::select::<impl sea_orm::SelectTwo<E, F>>::one`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/executor/select.rs:495:12
    |
493 |     pub async fn one<'a, C>(self, db: &C) -> Result<Option<(E::Model, Option<F::Model>)>, DbErr>
    |                  --- required by a bound in this associated function
494 |     where
495 |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `sea_orm::executor::select::<impl SelectTwo<E, F>>::one`

Check failure on line 119 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/reports.rs:117:13
    |
117 | /             challenges_subtask_reports::Entity::find_by_id(report_id.0)
118 | |                 .find_also_related(challenges_subtasks::Entity)
119 | |                 .one(&***db)
    | |____________________________^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::executor::select::<impl sea_orm::SelectTwo<E, F>>::one`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/executor/select.rs:495:12
    |
493 |     pub async fn one<'a, C>(self, db: &C) -> Result<Option<(E::Model, Option<F::Model>)>, DbErr>
    |                  --- required by a bound in this associated function
494 |     where
495 |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `sea_orm::executor::select::<impl SelectTwo<E, F>>::one`

Check failure on line 119 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/reports.rs:119:22
    |
119 |                 .one(&***db)
    |                  --- ^^^^^^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |                  |
    |                  required by a bound introduced by this call
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::executor::select::<impl sea_orm::SelectTwo<E, F>>::one`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/executor/select.rs:495:12
    |
493 |     pub async fn one<'a, C>(self, db: &C) -> Result<Option<(E::Model, Option<F::Model>)>, DbErr>
    |                  --- required by a bound in this associated function
494 |     where
495 |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `sea_orm::executor::select::<impl SelectTwo<E, F>>::one`

Check failure on line 95 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/endpoints/subtasks/reports.rs:95:13
    |
94  |         let (report, _) = create_report(
    |                           ------------- arguments to this function are incorrect
95  |             &db,
    |             ^^^ expected `&DatabaseTransaction`, found `&Data<&Arc<DatabaseTransaction>>`
    |
    = note: expected reference `&sea_orm::DatabaseTransaction`
               found reference `&poem::web::Data<&std::sync::Arc<sea_orm::database::transaction::DatabaseTransaction>>`
note: function defined here
   --> challenges/src/endpoints/subtasks/reports.rs:194:21
    |
194 | pub(super) async fn create_report(
    |                     ^^^^^^^^^^^^^
195 |     db: &DatabaseTransaction,
    |     ------------------------

Check failure on line 88 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/endpoints/subtasks/reports.rs:88:30
    |
88  |         match get_active_ban(&db, &auth.0, ChallengesBanAction::Report).await? {
    |               -------------- ^^^ expected `&DatabaseTransaction`, found `&Data<&Arc<DatabaseTransaction>>`
    |               |
    |               arguments to this function are incorrect
    |
    = note: expected reference `&sea_orm::DatabaseTransaction`
               found reference `&poem::web::Data<&std::sync::Arc<sea_orm::database::transaction::DatabaseTransaction>>`
note: function defined here
   --> challenges/src/services/subtasks.rs:166:14
    |
166 | pub async fn get_active_ban(
    |              ^^^^^^^^^^^^^^
167 |     db: &DatabaseTransaction,
    |     ------------------------

Check failure on line 83 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/endpoints/subtasks/reports.rs:83:45
    |
83  |         let user_subtask = get_user_subtask(&db, auth.0.id, subtask.id).await?;
    |                            ---------------- ^^^ expected `&DatabaseTransaction`, found `&Data<&Arc<DatabaseTransaction>>`
    |                            |
    |                            arguments to this function are incorrect
    |
    = note: expected reference `&sea_orm::DatabaseTransaction`
               found reference `&poem::web::Data<&std::sync::Arc<sea_orm::database::transaction::DatabaseTransaction>>`
note: function defined here
   --> challenges/src/services/subtasks.rs:134:14
    |
134 | pub async fn get_user_subtask(
    |              ^^^^^^^^^^^^^^^^
135 |     db: &DatabaseTransaction,
    |     ------------------------

Check failure on line 76 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/endpoints/subtasks/reports.rs:76:46
    |
76  |         let Some((subtask, _)) = get_subtask(&db, data.0.task_id, data.0.subtask_id).await? else {
    |                                  ----------- ^^^ expected `&DatabaseTransaction`, found `&Data<&Arc<DatabaseTransaction>>`
    |                                  |
    |                                  arguments to this function are incorrect
    |
    = note: expected reference `&sea_orm::DatabaseTransaction`
               found reference `&poem::web::Data<&std::sync::Arc<sea_orm::database::transaction::DatabaseTransaction>>`
note: function defined here
   --> challenges/src/endpoints/subtasks/mod.rs:163:10
    |
163 | async fn get_subtask(
    |          ^^^^^^^^^^^
164 |     db: &DatabaseTransaction,
    |     ------------------------

Check failure on line 61 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/reports.rs:61:18
    |
61  |                 .await?
    |                  ^^^^^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::executor::select::<impl sea_orm::SelectTwo<E, F>>::all`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/executor/select.rs:503:12
    |
501 |     pub async fn all<'a, C>(self, db: &C) -> Result<Vec<(E::Model, Option<F::Model>)>, DbErr>
    |                  --- required by a bound in this associated function
502 |     where
503 |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `sea_orm::executor::select::<impl SelectTwo<E, F>>::all`

Check failure on line 60 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/reports.rs:59:13
    |
59  | /             query
60  | |                 .all(&***db)
    | |____________________________^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::executor::select::<impl sea_orm::SelectTwo<E, F>>::all`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/executor/select.rs:503:12
    |
501 |     pub async fn all<'a, C>(self, db: &C) -> Result<Vec<(E::Model, Option<F::Model>)>, DbErr>
    |                  --- required by a bound in this associated function
502 |     where
503 |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `sea_orm::executor::select::<impl SelectTwo<E, F>>::all`

Check failure on line 60 in challenges/src/endpoints/subtasks/reports.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/reports.rs:60:22
    |
60  |                 .all(&***db)
    |                  --- ^^^^^^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |                  |
    |                  required by a bound introduced by this call
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::executor::select::<impl sea_orm::SelectTwo<E, F>>::all`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/executor/select.rs:503:12
    |
501 |     pub async fn all<'a, C>(self, db: &C) -> Result<Vec<(E::Model, Option<F::Model>)>, DbErr>
    |                  --- required by a bound in this associated function
502 |     where
503 |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `sea_orm::executor::select::<impl SelectTwo<E, F>>::all`

Check failure on line 100 in challenges/src/endpoints/subtasks/feedback.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> challenges/src/endpoints/subtasks/feedback.rs:100:21
    |
99  |                 create_report(
    |                 ------------- arguments to this function are incorrect
100 |                     &db,
    |                     ^^^ expected `&DatabaseTransaction`, found `&Data<&Arc<DatabaseTransaction>>`
    |
    = note: expected reference `&sea_orm::DatabaseTransaction`
               found reference `&poem::web::Data<&std::sync::Arc<sea_orm::database::transaction::DatabaseTransaction>>`
note: function defined here
   --> challenges/src/endpoints/subtasks/reports.rs:194:21
    |
194 | pub(super) async fn create_report(
    |                     ^^^^^^^^^^^^^
195 |     db: &DatabaseTransaction,
    |     ------------------------

Check failure on line 89 in challenges/src/endpoints/subtasks/feedback.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/feedback.rs:89:18
    |
89  |                 .await?;
    |                  ^^^^^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::executor::select::<impl sea_orm::Select<E>>::all`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/executor/select.rs:425:12
    |
423 |     pub async fn all<'a, C>(self, db: &C) -> Result<Vec<E::Model>, DbErr>
    |                  --- required by a bound in this associated function
424 |     where
425 |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `sea_orm::executor::select::<impl Select<E>>::all`

Check failure on line 88 in challenges/src/endpoints/subtasks/feedback.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied

error[E0277]: the trait bound `sea_orm::database::transaction::DatabaseTransaction: sea_orm::ConnectionTrait` is not satisfied
   --> challenges/src/endpoints/subtasks/feedback.rs:85:27
    |
85  |               let ratings = challenges_user_subtasks::Entity::find()
    |  ___________________________^
86  | |                 .filter(challenges_user_subtasks::Column::UserId.eq(subtask.id))
87  | |                 .filter(challenges_user_subtasks::Column::Rating.is_not_null())
88  | |                 .all(&***db)
    | |____________________________^ the trait `sea_orm::ConnectionTrait` is not implemented for `sea_orm::database::transaction::DatabaseTransaction`
    |
    = help: the following other types implement trait `sea_orm::ConnectionTrait`:
              sea_orm::DatabaseConnection
              sea_orm::DatabaseTransaction
note: required by a bound in `sea_orm::executor::select::<impl sea_orm::Select<E>>::all`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-1.0.1/src/executor/select.rs:425:12
    |
423 |     pub async fn all<'a, C>(self, db: &C) -> Result<Vec<E::Model>, DbErr>
    |                  --- required by a bound in this associated function
424 |     where
425 |         C: ConnectionTrait,
    |            ^^^^^^^^^^^^^^^ required by this bound in `sea_orm::executor::select::<impl Select<E>>::all`