Skip to content

Add an endpoint to clear an instance's console buffer

Sign in for the full log view
GitHub Actions / clippy failed Aug 16, 2024 in 0s

clippy

1 error, 13 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 13
Note 0
Help 0

Versions

  • rustc 1.70.0 (90c541806 2023-05-31)
  • cargo 1.70.0 (ec8a8a0ca 2023-04-25)
  • clippy 0.1.70 (90c5418 2023-05-31)

Annotations

Check warning on line 15 in core/src/handlers/extension.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `ErrorKind`, `auth::user::UserAction`

warning: unused imports: `ErrorKind`, `auth::user::UserAction`
  --> core/src/handlers/extension.rs:15:5
   |
15 |     auth::user::UserAction,
   |     ^^^^^^^^^^^^^^^^^^^^^^
16 |     error::{Error, ErrorKind},
   |                    ^^^^^^^^^

Check warning on line 12 in core/src/handlers/extension.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `tracing::error`

warning: unused import: `tracing::error`
  --> core/src/handlers/extension.rs:12:5
   |
12 | use tracing::error;
   |     ^^^^^^^^^^^^^^

Check warning on line 11 in core/src/handlers/extension.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `serde_json::Value`

warning: unused import: `serde_json::Value`
  --> core/src/handlers/extension.rs:11:5
   |
11 | use serde_json::Value;
   |     ^^^^^^^^^^^^^^^^^

Check warning on line 10 in core/src/handlers/extension.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `eyre`

warning: unused import: `eyre`
  --> core/src/handlers/extension.rs:10:24
   |
10 | use color_eyre::eyre::{eyre, Context};
   |                        ^^^^

Check warning on line 8 in core/src/handlers/extension.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `axum_auth::AuthBearer`

warning: unused import: `axum_auth::AuthBearer`
 --> core/src/handlers/extension.rs:8:5
  |
8 | use axum_auth::AuthBearer;
  |     ^^^^^^^^^^^^^^^^^^^^^

Check warning on line 4 in core/src/handlers/extension.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `extract::Path`

warning: unused import: `extract::Path`
 --> core/src/handlers/extension.rs:4:5
  |
4 |     extract::Path,
  |     ^^^^^^^^^^^^^

Check warning on line 1 in core/src/handlers/extension.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `std::num::NonZeroU16`

warning: unused import: `std::num::NonZeroU16`
 --> core/src/handlers/extension.rs:1:5
  |
1 | use std::num::NonZeroU16;
  |     ^^^^^^^^^^^^^^^^^^^^

Check warning on line 3 in core/src/handlers/instance_setup_configs.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `crate::implementations::generic`

warning: unused import: `crate::implementations::generic`
 --> core/src/handlers/instance_setup_configs.rs:3:5
  |
3 | use crate::implementations::generic;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 22 in core/src/handlers/instance.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `crate::traits::t_configurable::Game::Generic`

warning: unused import: `crate::traits::t_configurable::Game::Generic`
  --> core/src/handlers/instance.rs:22:5
   |
22 | use crate::traits::t_configurable::Game::Generic;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 7 in core/src/handlers/instance.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `bollard::Docker`

warning: unused import: `bollard::Docker`
 --> core/src/handlers/instance.rs:7:5
  |
7 | use bollard::Docker;
  |     ^^^^^^^^^^^^^^^

Check warning on line 6 in core/src/handlers/instance.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `bollard::container::ListContainersOptions`

warning: unused import: `bollard::container::ListContainersOptions`
 --> core/src/handlers/instance.rs:6:5
  |
6 | use bollard::container::ListContainersOptions;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 3 in core/src/extension/git/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `process::Stdio`

warning: unused import: `process::Stdio`
 --> core/src/extension/git/mod.rs:3:5
  |
3 |     process::Stdio,
  |     ^^^^^^^^^^^^^^

Check warning on line 3 in core/src/extension/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `axum::Json`

warning: unused import: `axum::Json`
 --> core/src/extension/mod.rs:3:5
  |
3 | use axum::Json;
  |     ^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Check failure on line 304 in core/src/handlers/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `UserAction`

error[E0433]: failed to resolve: use of undeclared type `UserAction`
   --> core/src/handlers/events.rs:304:39
    |
304 |     if !requester.can_perform_action(&UserAction::ClearConsoleBuffer(uuid.clone())) {
    |                                       ^^^^^^^^^^ use of undeclared type `UserAction`
    |
help: consider importing this enum
    |
1   + use crate::auth::user::UserAction;
    |