Skip to content

chore(deps): update alpine/helm docker tag to v3.17.0

# for the full log view
GitHub Actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in succeeded Jan 19, 2025 in 1m 58s

Clippy (Stable ~ Linux/x86_64)

Clippy was successful!

Details

Running cargo clippy took roughly ~117950ms to complete

  • Working Directory: repository directory

Annotations

Check warning on line 87 in /home/runner/work/charted/charted/crates/core/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/core/src/lib.rs#L87

the following explicit lifetimes could be elided: 'de
Raw output
warning: the following explicit lifetimes could be elided: 'de
  --> crates/core/src/serde/duration.rs:87:14
   |
87 |         impl<'de> serde::de::Visitor<'de> for Visitor {
   |              ^^^                     ^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
   |
87 -         impl<'de> serde::de::Visitor<'de> for Visitor {
87 +         impl serde::de::Visitor<'_> for Visitor {
   |

Check warning on line 60 in /home/runner/work/charted/charted/crates/types/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/types/src/lib.rs#L60

the following explicit lifetimes could be elided: 'de
Raw output
warning: the following explicit lifetimes could be elided: 'de
  --> crates/types/src/newtypes/version.rs:60:14
   |
60 |         impl<'de> serde::de::Visitor<'de> for Visitor {
   |              ^^^                     ^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
   |
60 -         impl<'de> serde::de::Visitor<'de> for Visitor {
60 +         impl serde::de::Visitor<'_> for Visitor {
   |

Check warning on line 37 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L37

unused imports: `PGUser` and `SqliteUser`
Raw output
warning: unused imports: `PGUser` and `SqliteUser`
  --> crates/server/src/routing/v1/user/mod.rs:37:5
   |
37 |     PGUser, SqliteUser, User,
   |     ^^^^^^  ^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

Check warning on line 39 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L39

unused import: `backend::Backend`
Raw output
warning: unused import: `backend::Backend`
  --> crates/server/src/routing/v1/user/mod.rs:39:14
   |
39 | use diesel::{backend::Backend, ExpressionMethods, QueryDsl};
   |              ^^^^^^^^^^^^^^^^

Check warning on line 79 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L79

unused variable: `ctx`
Raw output
warning: unused variable: `ctx`
  --> crates/server/src/ops/db/user.rs:79:21
   |
79 | pub async fn delete(ctx: ServerContext, user: User) -> eyre::Result<()> {
   |                     ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
   |
   = note: `#[warn(unused_variables)]` on by default

Check warning on line 85 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L85

unused variable: `ctx`
Raw output
warning: unused variable: `ctx`
  --> crates/server/src/ops/db/user.rs:85:34
   |
85 | async fn delete_all_repositories(ctx: &ServerContext, user: &User) -> eyre::Result<()> {
   |                                  ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

Check warning on line 85 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L85

unused variable: `user`
Raw output
warning: unused variable: `user`
  --> crates/server/src/ops/db/user.rs:85:55
   |
85 | async fn delete_all_repositories(ctx: &ServerContext, user: &User) -> eyre::Result<()> {
   |                                                       ^^^^ help: if this is intentional, prefix it with an underscore: `_user`

Check warning on line 89 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L89

unused variable: `ctx`
Raw output
warning: unused variable: `ctx`
  --> crates/server/src/ops/db/user.rs:89:35
   |
89 | async fn delete_all_organizations(ctx: &ServerContext, user: &User) -> eyre::Result<()> {
   |                                   ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

Check warning on line 89 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L89

unused variable: `user`
Raw output
warning: unused variable: `user`
  --> crates/server/src/ops/db/user.rs:89:56
   |
89 | async fn delete_all_organizations(ctx: &ServerContext, user: &User) -> eyre::Result<()> {
   |                                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_user`

Check warning on line 93 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L93

unused variable: `ctx`
Raw output
warning: unused variable: `ctx`
  --> crates/server/src/ops/db/user.rs:93:37
   |
93 | async fn delete_persistent_metadata(ctx: &ServerContext, user: &User) -> eyre::Result<()> {
   |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

Check warning on line 93 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L93

unused variable: `user`
Raw output
warning: unused variable: `user`
  --> crates/server/src/ops/db/user.rs:93:58
   |
93 | async fn delete_persistent_metadata(ctx: &ServerContext, user: &User) -> eyre::Result<()> {
   |                                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_user`

Check warning on line 445 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L445

unused variable: `email`
Raw output
warning: unused variable: `email`
   --> crates/server/src/routing/v1/user/mod.rs:445:9
    |
445 |         email,
    |         ^^^^^ help: try ignoring the field: `email: _`

Check warning on line 446 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L446

unused variable: `name`
Raw output
warning: unused variable: `name`
   --> crates/server/src/routing/v1/user/mod.rs:446:9
    |
446 |         name,
    |         ^^^^ help: try ignoring the field: `name: _`

Check warning on line 387 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L387

unused variable: `ctx`
Raw output
warning: unused variable: `ctx`
   --> crates/server/src/routing/v1/user/apikeys.rs:387:11
    |
387 |     State(ctx): State<ServerContext>,
    |           ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

Check warning on line 388 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L388

unused variable: `user`
Raw output
warning: unused variable: `user`
   --> crates/server/src/routing/v1/user/apikeys.rs:388:25
    |
388 |     Extension(Session { user, .. }): Extension<Session>,
    |                         ^^^^ help: try ignoring the field: `user: _`

Check warning on line 389 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L389

unused variable: `id_or_name`
Raw output
warning: unused variable: `id_or_name`
   --> crates/server/src/routing/v1/user/apikeys.rs:389:10
    |
389 |     Path(id_or_name): Path<NameOrUlid>,
    |          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_id_or_name`

Check warning on line 390 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L390

unused variable: `description`
Raw output
warning: unused variable: `description`
   --> crates/server/src/routing/v1/user/apikeys.rs:390:31
    |
390 |     Json(PatchApiKeyPayload { description, name, .. }): Json<PatchApiKeyPayload>,
    |                               ^^^^^^^^^^^ help: try ignoring the field: `description: _`

Check warning on line 390 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L390

unused variable: `name`
Raw output
warning: unused variable: `name`
   --> crates/server/src/routing/v1/user/apikeys.rs:390:44
    |
390 |     Json(PatchApiKeyPayload { description, name, .. }): Json<PatchApiKeyPayload>,
    |                                            ^^^^ help: try ignoring the field: `name: _`

Check warning on line 404 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L404

unused variable: `ctx`
Raw output
warning: unused variable: `ctx`
   --> crates/server/src/routing/v1/user/apikeys.rs:404:11
    |
404 |     State(ctx): State<ServerContext>,
    |           ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

Check warning on line 405 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L405

unused variable: `user`
Raw output
warning: unused variable: `user`
   --> crates/server/src/routing/v1/user/apikeys.rs:405:25
    |
405 |     Extension(Session { user, .. }): Extension<Session>,
    |                         ^^^^ help: try ignoring the field: `user: _`

Check warning on line 406 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L406

unused variable: `id_or_name`
Raw output
warning: unused variable: `id_or_name`
   --> crates/server/src/routing/v1/user/apikeys.rs:406:10
    |
406 |     Path(id_or_name): Path<NameOrUlid>,
    |          ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_id_or_name`

Check warning on line 39 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L39

unused import: `QueryDsl`
Raw output
warning: unused import: `QueryDsl`
  --> crates/server/src/routing/v1/user/mod.rs:39:51
   |
39 | use diesel::{backend::Backend, ExpressionMethods, QueryDsl};
   |                                                   ^^^^^^^^

Check warning on line 39 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L39

unused import: `ExpressionMethods`
Raw output
warning: unused import: `ExpressionMethods`
  --> crates/server/src/routing/v1/user/mod.rs:39:32
   |
39 | use diesel::{backend::Backend, ExpressionMethods, QueryDsl};
   |                                ^^^^^^^^^^^^^^^^^

Check warning on line 85 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L85

function `delete_all_repositories` is never used
Raw output
warning: function `delete_all_repositories` is never used
  --> crates/server/src/ops/db/user.rs:85:10
   |
85 | async fn delete_all_repositories(ctx: &ServerContext, user: &User) -> eyre::Result<()> {
   |          ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

Check warning on line 89 in /home/runner/work/charted/charted/crates/server/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy: Rust Stable 1.86.0-nightly (049355708 2025-01-18) in

/home/runner/work/charted/charted/crates/server/src/lib.rs#L89

function `delete_all_organizations` is never used
Raw output
warning: function `delete_all_organizations` is never used
  --> crates/server/src/ops/db/user.rs:89:10
   |
89 | async fn delete_all_organizations(ctx: &ServerContext, user: &User) -> eyre::Result<()> {
   |          ^^^^^^^^^^^^^^^^^^^^^^^^