Skip to content

more api work

more api work #203

GitHub Actions / clippy failed May 29, 2024 in 0s

clippy

4 errors, 4 warnings

Details

Results

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

Versions

  • rustc 1.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956 2024-04-29)

Annotations

Check warning on line 1 in src/commands/init/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `Context`

warning: unused import: `Context`
 --> src/commands/init/mod.rs:1:20
  |
1 | use anyhow::{bail, Context, Result};
  |                    ^^^^^^^

Check failure on line 214 in src/commands/init/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no field `servers` on type `&mut _`

error[E0609]: no field `servers` on type `&mut _`
   --> src/commands/init/mod.rs:214:23
    |
214 |                 if nw.servers.contains_key(&app.server.name) {
    |                       ^^^^^^^ unknown field

Check warning on line 3 in src/api/app/actions/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `build::*`

warning: unused import: `build::*`
 --> src/api/app/actions/mod.rs:3:9
  |
3 | pub use build::*;
  |         ^^^^^^^^

Check warning on line 5 in src/api/models/packwiz/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `packwiz_mod::*`

warning: unused import: `packwiz_mod::*`
 --> src/api/models/packwiz/mod.rs:5:9
  |
5 | pub use packwiz_mod::*;
  |         ^^^^^^^^^^^^^^

Check warning on line 4 in src/api/models/packwiz/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `packwiz_pack::*`

warning: unused import: `packwiz_pack::*`
 --> src/api/models/packwiz/mod.rs:4:9
  |
4 | pub use packwiz_pack::*;
  |         ^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Check failure on line 17 in src/commands/init/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved imports `crate::app`, `crate::model`, `crate::util`

error[E0432]: unresolved imports `crate::app`, `crate::model`, `crate::util`
  --> src/commands/init/mod.rs:17:5
   |
17 |     app::BaseApp,
   |     ^^^ unresolved import
18 |     interop::{mrpack::MRPackReader, packwiz::FileProvider},
19 |     model::{Network, Server, ServerEntry, ServerType, SoftwareType},
   |     ^^^^^ unresolved import
20 |     util::{
   |     ^^^^ could not find `util` in the crate root
   |
help: a similar path exists
   |
17 |     crate::api::app::BaseApp,
   |     ~~~~~~~~~~~~~~~
help: a similar path exists
   |
19 |     rpackwiz::model::{Network, Server, ServerEntry, ServerType, SoftwareType},
   |     ~~~~~~~~~~~~~~~

Check failure on line 20 in src/commands/init/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: could not find `util` in the crate root

error[E0433]: failed to resolve: could not find `util` in the crate root
  --> src/commands/init/mod.rs:20:5
   |
20 |     util::{
   |     ^^^^ could not find `util` in the crate root

Check failure on line 18 in src/commands/init/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: could not find `interop` in the crate root

error[E0433]: failed to resolve: could not find `interop` in the crate root
  --> src/commands/init/mod.rs:18:5
   |
18 |     interop::{mrpack::MRPackReader, packwiz::FileProvider},
   |     ^^^^^^^ could not find `interop` in the crate root