Upgrade/clean arch #75
Annotations
4 errors and 21 warnings
test_unit
Process completed with exit code 101.
|
test_e2e
Process completed with exit code 101.
|
unresolved imports `crate::appv2::features::article::services::fetch_article`, `crate::appv2::features::article::services::FetchArticle`:
src/appv2/features/favorite/services.rs#L2
error[E0432]: unresolved imports `crate::appv2::features::article::services::fetch_article`, `crate::appv2::features::article::services::FetchArticle`
--> src/appv2/features/favorite/services.rs:2:49
|
2 | use crate::appv2::features::article::services::{fetch_article, FetchArticle};
| ^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `FetchArticle` in `appv2::features::article::services`
| |
| no `fetch_article` in `appv2::features::article::services`
|
clippy_check
Clippy had exited with the 101 exit code
|
test_unit
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|
test_e2e
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|
use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository:
src/appv2/features/profile/services.rs#L21
warning: use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository
--> src/appv2/features/profile/services.rs:21:16
|
21 | image: params.user.image.to_owned(),
| ^^^^^^^^^^^
|
use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository:
src/appv2/features/profile/services.rs#L20
warning: use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository
--> src/appv2/features/profile/services.rs:20:14
|
20 | bio: params.user.bio.to_owned(),
| ^^^^^^^^^^^
|
use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository:
src/appv2/features/profile/services.rs#L19
warning: use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository
--> src/appv2/features/profile/services.rs:19:19
|
19 | username: params.user.username.to_owned(),
| ^^^^^^^^^^^
|
use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository:
src/appv2/features/profile/services.rs#L14
warning: use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository
--> src/appv2/features/profile/services.rs:14:64
|
14 | Some(current_user) => current_user.is_following(conn, ¶ms.user.id),
| ^^^^^^^^^^^
|
use of deprecated field `appv2::features::profile::services::ConverUserToProfile::current_user`: use repository:
src/appv2/features/profile/services.rs#L13
warning: use of deprecated field `appv2::features::profile::services::ConverUserToProfile::current_user`: use repository
--> src/appv2/features/profile/services.rs:13:27
|
13 | let following = match params.current_user.as_ref() {
| ^^^^^^^^^^^^^^^^^^^
|
use of deprecated field `appv2::drivers::middlewares::state::AppState::pool`:
src/appv2/drivers/middlewares/state.rs#L23
warning: use of deprecated field `appv2::drivers::middlewares::state::AppState::pool`
--> src/appv2/drivers/middlewares/state.rs:23:20
|
23 | let conn = self.pool.get()?;
| ^^^^^^^^^
|
use of deprecated field `appv2::drivers::middlewares::state::AppState::pool`:
src/appv2/drivers/middlewares/state.rs#L19
warning: use of deprecated field `appv2::drivers::middlewares::state::AppState::pool`
--> src/appv2/drivers/middlewares/state.rs:19:16
|
19 | Self { pool, di_container }
| ^^^^
|
use of deprecated field `appv2::features::profile::services::ConverUserToProfile::current_user`: use repository:
src/app/comment/service.rs#L62
warning: use of deprecated field `appv2::features::profile::services::ConverUserToProfile::current_user`: use repository
--> src/app/comment/service.rs:62:85
|
62 | let profile = conver_user_to_profile(conn, &ConverUserToProfile { user, current_user });
| ^^^^^^^^^^^^
|
use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository:
src/app/comment/service.rs#L62
warning: use of deprecated field `appv2::features::profile::services::ConverUserToProfile::user`: use repository
--> src/app/comment/service.rs:62:79
|
62 | let profile = conver_user_to_profile(conn, &ConverUserToProfile { user, current_user });
| ^^^^
|
use of deprecated struct `appv2::features::profile::services::ConverUserToProfile`: use repository:
src/appv2/features/profile/services.rs#L12
warning: use of deprecated struct `appv2::features::profile::services::ConverUserToProfile`: use repository
--> src/appv2/features/profile/services.rs:12:65
|
12 | pub fn conver_user_to_profile(conn: &mut PgConnection, params: &ConverUserToProfile) -> Profile {
| ^^^^^^^^^^^^^^^^^^^
|
use of deprecated function `appv2::features::favorite::services::unfavorite`: use repository instead:
src/appv2/features/favorite/repositories.rs#L42
warning: use of deprecated function `appv2::features::favorite::services::unfavorite`: use repository instead
--> src/appv2/features/favorite/repositories.rs:42:70
|
42 | let (article, profile, favorite_info, tags_list) = services::unfavorite(
| ^^^^^^^^^^
|
use of deprecated function `appv2::features::favorite::services::favorite`: use repository instead:
src/appv2/features/favorite/repositories.rs#L26
warning: use of deprecated function `appv2::features::favorite::services::favorite`: use repository instead
--> src/appv2/features/favorite/repositories.rs:26:70
|
26 | let (article, profile, favorite_info, tags_list) = services::favorite(
| ^^^^^^^^
|
use of deprecated struct `appv2::features::profile::services::ConverUserToProfile`: use repository:
src/app/comment/service.rs#L62
warning: use of deprecated struct `appv2::features::profile::services::ConverUserToProfile`: use repository
--> src/app/comment/service.rs:62:57
|
62 | let profile = conver_user_to_profile(conn, &ConverUserToProfile { user, current_user });
| ^^^^^^^^^^^^^^^^^^^
|
use of deprecated function `appv2::features::profile::services::conver_user_to_profile`: use repository:
src/app/comment/service.rs#L62
warning: use of deprecated function `appv2::features::profile::services::conver_user_to_profile`: use repository
--> src/app/comment/service.rs:62:27
|
62 | let profile = conver_user_to_profile(conn, &ConverUserToProfile { user, current_user });
| ^^^^^^^^^^^^^^^^^^^^^^
|
use of deprecated struct `appv2::features::profile::services::ConverUserToProfile`: use repository:
src/app/comment/service.rs#L4
warning: use of deprecated struct `appv2::features::profile::services::ConverUserToProfile`: use repository
--> src/app/comment/service.rs:4:73
|
4 | use crate::appv2::features::profile::services::{conver_user_to_profile, ConverUserToProfile};
| ^^^^^^^^^^^^^^^^^^^
|
use of deprecated function `appv2::features::profile::services::conver_user_to_profile`: use repository:
src/app/comment/service.rs#L4
warning: use of deprecated function `appv2::features::profile::services::conver_user_to_profile`: use repository
--> src/app/comment/service.rs:4:49
|
4 | use crate::appv2::features::profile::services::{conver_user_to_profile, ConverUserToProfile};
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
unused import: `uuid::Uuid`:
src/appv2/features/favorite/usecases.rs#L7
warning: unused import: `uuid::Uuid`
--> src/appv2/features/favorite/usecases.rs:7:5
|
7 | use uuid::Uuid;
| ^^^^^^^^^^
|
unused imports: `Article`, `DeleteArticle`, `SingleArticleResponse`:
src/appv2/features/article/controllers.rs#L2
warning: unused imports: `Article`, `DeleteArticle`, `SingleArticleResponse`
--> src/appv2/features/article/controllers.rs:2:16
|
2 | entities::{Article, DeleteArticle},
| ^^^^^^^ ^^^^^^^^^^^^^
3 | presenters::{MultipleArticlesResponse, SingleArticleResponse},
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
clippy_check
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|