core is now all yellow instead of red #84
Annotations
70 errors and 19 warnings
the trait bound `CacheStrategy: _::_serde::Deserialize<'_>` is not satisfied:
src/main.rs#L234
error[E0277]: the trait bound `CacheStrategy: _::_serde::Deserialize<'_>` is not satisfied
--> src/main.rs:234:5
|
234 | cache: CacheStrategy,
| ^^^^^ the trait `_::_serde::Deserialize<'_>` is not implemented for `CacheStrategy`
|
= help: the following other types implement trait `_::_serde::Deserialize<'de>`:
bool
char
isize
i8
i16
i32
i64
i128
and 258 others
note: required by a bound in `_::_serde::__private::de::missing_field`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.174/src/private/de.rs:22:8
|
20 | pub fn missing_field<'de, V, E>(field: &'static str) -> Result<V, E>
| ------------- required by a bound in this function
21 | where
22 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `missing_field`
|
the trait bound `CacheStrategy: _::_serde::Deserialize<'_>` is not satisfied:
src/main.rs#L234
error[E0277]: the trait bound `CacheStrategy: _::_serde::Deserialize<'_>` is not satisfied
--> src/main.rs:234:12
|
234 | cache: CacheStrategy,
| ^^^^^^^^^^^^^ the trait `_::_serde::Deserialize<'_>` is not implemented for `CacheStrategy`
|
= help: the following other types implement trait `_::_serde::Deserialize<'de>`:
bool
char
isize
i8
i16
i32
i64
i128
and 258 others
note: required by a bound in `_::_serde::de::MapAccess::next_value`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.174/src/de/mod.rs:1868:12
|
1866 | fn next_value<V>(&mut self) -> Result<V, Self::Error>
| ---------- required by a bound in this associated function
1867 | where
1868 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value`
|
the trait bound `CacheStrategy: _::_serde::Deserialize<'_>` is not satisfied:
src/main.rs#L234
error[E0277]: the trait bound `CacheStrategy: _::_serde::Deserialize<'_>` is not satisfied
--> src/main.rs:234:12
|
234 | cache: CacheStrategy,
| ^^^^^^^^^^^^^ the trait `_::_serde::Deserialize<'_>` is not implemented for `CacheStrategy`
|
= help: the following other types implement trait `_::_serde::Deserialize<'de>`:
bool
char
isize
i8
i16
i32
i64
i128
and 258 others
note: required by a bound in `_::_serde::de::SeqAccess::next_element`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.174/src/de/mod.rs:1729:12
|
1727 | fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error>
| ------------ required by a bound in this associated function
1728 | where
1729 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element`
|
the trait bound `CacheStrategy: _::_serde::Serialize` is not satisfied:
src/main.rs#L230
error[E0277]: the trait bound `CacheStrategy: _::_serde::Serialize` is not satisfied
--> src/main.rs:230:24
|
230 | #[derive(Debug, Clone, Serialize, Deserialize)]
| ^^^^^^^^^ the trait `_::_serde::Serialize` is not implemented for `CacheStrategy`
...
234 | cache: CacheStrategy,
| ----- required by a bound introduced by this call
|
= help: the following other types implement trait `_::_serde::Serialize`:
bool
char
isize
i8
i16
i32
i64
i128
and 256 others
note: required by a bound in `_::_serde::ser::SerializeStruct::serialize_field`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.174/src/ser/mod.rs:1897:12
|
1891 | fn serialize_field<T: ?Sized>(
| --------------- required by a bound in this associated function
...
1897 | T: Serialize;
| ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field`
|
the trait bound `CacheStrategy: std::clone::Clone` is not satisfied:
src/main.rs#L234
error[E0277]: the trait bound `CacheStrategy: std::clone::Clone` is not satisfied
--> src/main.rs:234:5
|
230 | #[derive(Debug, Clone, Serialize, Deserialize)]
| ----- in this derive macro expansion
...
234 | cache: CacheStrategy,
| ^^^^^^^^^^^^^^^^^^^^ the trait `std::clone::Clone` is not implemented for `CacheStrategy`
|
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `CacheStrategy` with `#[derive(Clone)]`
|
239 + #[derive(Clone)]
240 | pub enum CacheStrategy {
|
|
`CacheStrategy` doesn't implement `std::fmt::Debug`:
src/main.rs#L234
error[E0277]: `CacheStrategy` doesn't implement `std::fmt::Debug`
--> src/main.rs:234:5
|
230 | #[derive(Debug, Clone, Serialize, Deserialize)]
| ----- in this derive macro expansion
...
234 | cache: CacheStrategy,
| ^^^^^^^^^^^^^^^^^^^^ `CacheStrategy` cannot be formatted using `{:?}`
|
= help: the trait `std::fmt::Debug` is not implemented for `CacheStrategy`
= note: add `#[derive(Debug)]` to `CacheStrategy` or manually `impl std::fmt::Debug for CacheStrategy`
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `CacheStrategy` with `#[derive(Debug)]`
|
239 + #[derive(Debug)]
240 | pub enum CacheStrategy {
|
|
this function takes 0 arguments but 1 argument was supplied:
src/main.rs#L97
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> src/main.rs:97:28
|
97 | Commands::Eject => commands::eject::run(base_app.upgrade(), ),
| ^^^^^^^^^^^^^^^^^^^^ --------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/eject.rs:10:8
|
10 | pub fn run() -> Result<()> {
| ^^^
|
this function takes 1 argument but 2 arguments were supplied:
src/main.rs#L96
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> src/main.rs:96:39
|
96 | Commands::Export(commands) => commands::export::run(base_app.upgrade(), commands).await,
| ^^^^^^^^^^^^^^^^^^^^^ --------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/export/mod.rs:14:14
|
14 | pub async fn run(commands: Commands) -> Result<()> {
| ^^^ ------------------
|
this function takes 0 arguments but 1 argument was supplied:
src/main.rs#L95
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> src/main.rs:95:30
|
95 | Commands::Version => commands::version::run(base_app).await,
| ^^^^^^^^^^^^^^^^^^^^^^ --------
| |
| unexpected argument of type `BaseApp`
| help: remove the extra argument
|
note: function defined here
--> src/commands/version.rs:9:14
|
9 | pub async fn run() -> Result<()> {
| ^^^
|
this function takes 0 arguments but 1 argument was supplied:
src/main.rs#L94
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> src/main.rs:94:27
|
94 | Commands::Info => commands::info::run(base_app.upgrade()),
| ^^^^^^^^^^^^^^^^^^^ ------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/info.rs:9:8
|
9 | pub fn run() -> Result<()> {
| ^^^
|
this function takes 1 argument but 2 arguments were supplied:
src/main.rs#L93
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> src/main.rs:93:38
|
93 | Commands::World(commands) => commands::world::run(base_app.upgrade(), commands).await,
| ^^^^^^^^^^^^^^^^^^^^ --------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/world/mod.rs:11:14
|
11 | pub async fn run(commands: Commands) -> Result<()> {
| ^^^ ------------------
|
this function takes 1 argument but 2 arguments were supplied:
src/main.rs#L92
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> src/main.rs:92:36
|
92 | Commands::Env(commands) => commands::env::run(base_app.upgrade(), commands),
| ^^^^^^^^^^^^^^^^^^ --------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/env/mod.rs:14:8
|
14 | pub fn run(commands: Commands) -> Result<()> {
| ^^^ ------------------
|
this function takes 1 argument but 2 arguments were supplied:
src/main.rs#L91
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> src/main.rs:91:33
|
91 | Commands::Pull(args) => commands::pull::run(base_app.upgrade(), args),
| ^^^^^^^^^^^^^^^^^^^ --------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/pull.rs:18:8
|
18 | pub fn run(args: Args) -> Result<()> {
| ^^^ ----------
|
this function takes 0 arguments but 1 argument was supplied:
src/main.rs#L90
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> src/main.rs:90:31
|
90 | Commands::Markdown => commands::markdown::run(base_app.upgrade(), ).await,
| ^^^^^^^^^^^^^^^^^^^^^^^ --------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/markdown.rs:28:14
|
28 | pub async fn run() -> Result<()> {
| ^^^
|
this function takes 1 argument but 2 arguments were supplied:
src/main.rs#L89
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> src/main.rs:89:42
|
89 | Commands::Import(subcommands) => commands::import::run(base_app.upgrade(), subcommands).await,
| ^^^^^^^^^^^^^^^^^^^^^ --------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/import/mod.rs:25:14
|
25 | pub async fn run(subcommands: Commands) -> Result<()> {
| ^^^ ---------------------
|
this function takes 1 argument but 2 arguments were supplied:
src/main.rs#L88
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> src/main.rs:88:36
|
88 | Commands::Add(commands) => commands::add::run(base_app.upgrade(), commands).await,
| ^^^^^^^^^^^^^^^^^^ --------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/add/mod.rs:12:14
|
12 | pub async fn run(args: Commands) -> Result<()> {
| ^^^ --------------
|
this function takes 1 argument but 2 arguments were supplied:
src/main.rs#L87
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> src/main.rs:87:32
|
87 | Commands::Run(args) => commands::run::run(base_app.upgrade(), args).await,
| ^^^^^^^^^^^^^^^^^^ --------------------
| |
| unexpected argument of type `std::result::Result<App, anyhow::Error>`
| help: remove the extra argument
|
note: function defined here
--> src/commands/run.rs:12:14
|
12 | pub async fn run(args: Args) -> Result<()> {
| ^^^ ----------
|
mismatched types:
src/main.rs#L86
error[E0308]: mismatched types
--> src/main.rs:86:55
|
86 | Commands::Build(args) => commands::build::run(base_app.upgrade(), args).await.map(|_| ()),
| -------------------- ^^^^^^^^^^^^^^^^^^ expected `App`, found `Result<App, Error>`
| |
| arguments to this function are incorrect
|
= note: expected struct `App`
found enum `std::result::Result<App, anyhow::Error>`
note: function defined here
--> src/commands/build.rs:24:14
|
24 | pub async fn run(app: App, args: Args) -> Result<BuildContext> {
| ^^^ --------
|
no method named `download` found for reference `&impl Resolvable` in the current scope:
src/util/mod.rs#L32
error[E0599]: no method named `download` found for reference `&impl Resolvable` in the current scope
--> src/util/mod.rs:32:10
|
31 | let response = downloadable
| ____________________-
32 | | .download(server, client)
| | -^^^^^^^^ method not found in `&impl Resolvable`
| |_________|
|
|
mismatched types:
src/sources/hangar.rs#L88
error[E0308]: mismatched types
--> src/sources/hangar.rs:88:24
|
88 | size: Some(download.get_file_info().size_bytes as i32),
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i32`
| |
| arguments to this enum variant are incorrect
|
help: the type constructed contains `i32` due to the type of the argument passed
--> src/sources/hangar.rs:88:19
|
88 | size: Some(download.get_file_info().size_bytes as i32),
| ^^^^^------------------------------------------^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/option.rs:571:5
help: you can convert an `i32` to a `u64` and panic if the converted value doesn't fit
|
88 | size: Some((download.get_file_info().size_bytes as i32).try_into().unwrap()),
| + +++++++++++++++++++++
|
mismatched types:
src/sources/vanilla.rs#L37
error[E0308]: mismatched types
--> src/sources/vanilla.rs:37:24
|
37 | size: Some(file.size as i32),
| ---- ^^^^^^^^^^^^^^^^ expected `u64`, found `i32`
| |
| arguments to this enum variant are incorrect
|
help: the type constructed contains `i32` due to the type of the argument passed
--> src/sources/vanilla.rs:37:19
|
37 | size: Some(file.size as i32),
| ^^^^^----------------^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/option.rs:571:5
help: you can convert an `i32` to a `u64` and panic if the converted value doesn't fit
|
37 | size: Some((file.size as i32).try_into().unwrap()),
| + +++++++++++++++++++++
|
mismatched types:
src/sources/github.rs#L215
error[E0308]: mismatched types
--> src/sources/github.rs:215:24
|
215 | size: Some(asset.size),
| ---- ^^^^^^^^^^ expected `u64`, found `i32`
| |
| arguments to this enum variant are incorrect
|
help: the type constructed contains `i32` due to the type of the argument passed
--> src/sources/github.rs:215:19
|
215 | size: Some(asset.size),
| ^^^^^----------^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/option.rs:571:5
help: you can convert an `i32` to a `u64` and panic if the converted value doesn't fit
|
215 | size: Some(asset.size.try_into().unwrap()),
| ++++++++++++++++++++
|
no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope:
src/model/downloadable/packwiz.rs#L183
error[E0599]: no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope
--> src/model/downloadable/packwiz.rs:183:37
|
183 | let filename = self.get_filename(server, http_client).await?;
| ^^^^^^^^^^^^ help: there is a method with a similar name: `get_type_name`
|
cannot find function `fetch_curserinth_versions` in this scope:
src/model/downloadable/packwiz.rs#L116
error[E0425]: cannot find function `fetch_curserinth_versions` in this scope
--> src/model/downloadable/packwiz.rs:116:32
|
116 | let versions = fetch_curserinth_versions(http_client, id, None).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
cannot find function `fetch_curserinth_project` in this scope:
src/model/downloadable/packwiz.rs#L108
error[E0425]: cannot find function `fetch_curserinth_project` in this scope
--> src/model/downloadable/packwiz.rs:108:28
|
108 | let proj = fetch_curserinth_project(http_client, id).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
the size for values of type `[sources::modrinth::ModrinthVersion]` cannot be known at compilation time:
src/commands/add/modrinth.rs#L69
error[E0277]: the size for values of type `[sources::modrinth::ModrinthVersion]` cannot be known at compilation time
--> src/commands/add/modrinth.rs:69:94
|
69 | let versions = modrinth::fetch_modrinth_versions(&http_client, &project.slug, None).await?;
| ^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `[sources::modrinth::ModrinthVersion]`
note: required by a bound in `std::ops::ControlFlow::Break`
--> /rustc/d5c2e9c342b358556da91d61ed4133f6f50fc0c3/library/core/src/ops/control_flow.rs:93:5
|
the size for values of type `[sources::modrinth::ModrinthVersion]` cannot be known at compilation time:
src/commands/add/modrinth.rs#L69
error[E0277]: the size for values of type `[sources::modrinth::ModrinthVersion]` cannot be known at compilation time
--> src/commands/add/modrinth.rs:69:20
|
69 | let versions = modrinth::fetch_modrinth_versions(&http_client, &project.slug, None).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `[sources::modrinth::ModrinthVersion]`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
|
the size for values of type `[sources::modrinth::ModrinthVersion]` cannot be known at compilation time:
src/commands/add/modrinth.rs#L69
error[E0277]: the size for values of type `[sources::modrinth::ModrinthVersion]` cannot be known at compilation time
--> src/commands/add/modrinth.rs:69:9
|
69 | let versions = modrinth::fetch_modrinth_versions(&http_client, &project.slug, None).await?;
| ^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `[sources::modrinth::ModrinthVersion]`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
|
this function takes 2 arguments but 1 argument was supplied:
src/commands/run.rs#L13
error[E0061]: this function takes 2 arguments but 1 argument was supplied
--> src/commands/run.rs:13:19
|
13 | let mut ctx = super::build::run(args.build_args).await?;
| ^^^^^^^^^^^^^^^^^ --------------- an argument of type `App` is missing
|
note: function defined here
--> src/commands/build.rs:24:14
|
24 | pub async fn run(app: App, args: Args) -> Result<BuildContext> {
| ^^^ -------- ----------
help: provide the argument
|
13 | let mut ctx = super::build::run(/* App */, args.build_args).await?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
cannot move out of `nw.name` which is behind a mutable reference:
src/commands/init/network.rs#L22
error[E0507]: cannot move out of `nw.name` which is behind a mutable reference
--> src/commands/init/network.rs:22:15
|
22 | style(nw.name).bold(),
| ^^^^^^^ move occurs because `nw.name` has type `std::string::String`, which does not implement the `Copy` trait
|
mismatched types:
src/commands/init/mod.rs#L295
error[E0308]: mismatched types
--> src/commands/init/mod.rs:295:39
|
295 | super::markdown::update_files(app, server)
| ----------------------------- ^^^ expected `&Client`, found `&BaseApp`
| |
| arguments to this function are incorrect
|
= note: expected reference `&reqwest::Client`
found reference `&BaseApp`
note: function defined here
--> src/commands/markdown.rs:51:14
|
51 | pub async fn update_files(http_client: &reqwest::Client, server: &Server) -> Result<()> {
| ^^^^^^^^^^^^ -----------------------------
|
mismatched types:
src/commands/init/mod.rs#L255
error[E0308]: mismatched types
--> src/commands/init/mod.rs:255:36
|
255 | packwiz_import_from_source(app, src, &mut server).await?;
| -------------------------- ^^^ expected `&Client`, found `&BaseApp`
| |
| arguments to this function are incorrect
|
= note: expected reference `&reqwest::Client`
found reference `&BaseApp`
note: function defined here
--> src/util/packwiz.rs:33:14
|
33 | pub async fn packwiz_import_from_source(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
34 | http_client: &reqwest::Client,
| -----------------------------
|
cannot find function `fetch_latest_mcver` in this scope:
src/commands/init/mod.rs#L218
error[E0425]: cannot find function `fetch_latest_mcver` in this scope
--> src/commands/init/mod.rs:218:26
|
218 | let latest_ver = fetch_latest_mcver(app)
| ^^^^^^^^^^^^^^^^^^ not found in this scope
|
mismatched types:
src/commands/init/mod.rs#L211
error[E0308]: mismatched types
--> src/commands/init/mod.rs:211:44
|
211 | let pack = packwiz_fetch_pack_from_src(app, src).await?;
| --------------------------- ^^^ expected `&Client`, found `&BaseApp`
| |
| arguments to this function are incorrect
|
= note: expected reference `&reqwest::Client`
found reference `&BaseApp`
note: function defined here
--> src/util/packwiz.rs:52:14
|
52 | pub async fn packwiz_fetch_pack_from_src(http_client: &reqwest::Client, src: &str) -> Result<Pack> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -----------------------------
|
cannot find function `fetch_latest_mcver` in this scope:
src/commands/init/mod.rs#L142
error[E0425]: cannot find function `fetch_latest_mcver` in this scope
--> src/commands/init/mod.rs:142:26
|
142 | let latest_ver = fetch_latest_mcver(app)
| ^^^^^^^^^^^^^^^^^^ not found in this scope
|
mismatched types:
src/commands/init/mod.rs#L113
error[E0308]: mismatched types
--> src/commands/init/mod.rs:113:39
|
113 | init_packwiz(&src, &name, &mut app).await?;
| ------------ ^^^^^^^^ expected `&BaseApp`, found `&mut App`
| |
| arguments to this function are incorrect
|
= note: expected reference `&BaseApp`
found mutable reference `&mut App`
note: function defined here
--> src/commands/init/mod.rs:203:14
|
203 | pub async fn init_packwiz(src: &str, name: &str, app: &BaseApp) -> Result<()> {
| ^^^^^^^^^^^^ -------------
|
mismatched types:
src/commands/init/mod.rs#L111
error[E0308]: mismatched types
--> src/commands/init/mod.rs:111:38
|
111 | init_mrpack(&src, &name, &mut app).await?;
| ----------- ^^^^^^^^ expected `&BaseApp`, found `&mut App`
| |
| arguments to this function are incorrect
|
= note: expected reference `&BaseApp`
found mutable reference `&mut App`
note: function defined here
--> src/commands/init/mod.rs:123:14
|
123 | pub async fn init_mrpack(src: &str, name: &str, app: &BaseApp) -> Result<()> {
| ^^^^^^^^^^^ -------------
|
missing field `multi_progress` in initializer of `App`:
src/commands/init/mod.rs#L101
error[E0063]: missing field `multi_progress` in initializer of `App`
--> src/commands/init/mod.rs:101:23
|
101 | let mut app = App {
| ^^^ missing `multi_progress`
|
missing field `multi_progress` in initializer of `App`:
src/commands/init/mod.rs#L84
error[E0063]: missing field `multi_progress` in initializer of `App`
--> src/commands/init/mod.rs:84:23
|
84 | let mut app = App {
| ^^^ missing `multi_progress`
|
this function takes 3 arguments but 4 arguments were supplied:
src/commands/import/customs.rs#L45
error[E0061]: this function takes 3 arguments but 4 arguments were supplied
--> src/commands/import/customs.rs:45:21
|
45 | Downloadable::from_url_interactive(&http_client, &server, url, false).await
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------ ------- unexpected argument of type `&model::servertoml::Server`
| |
| expected `&App`, found `&Client`
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: associated function defined here
--> src/model/downloadable/import_url.rs:13:18
|
13 | pub async fn from_url_interactive(
| ^^^^^^^^^^^^^^^^^^^^
14 | app: &App,
| ---------
15 | urlstr: &str,
| ------------
16 | datapack_mode: bool,
| -------------------
help: remove the extra argument
|
45 - Downloadable::from_url_interactive(&http_client, &server, url, false).await
45 + Downloadable::from_url_interactive(/* &App */, url, false).await
|
|
this function takes 3 arguments but 4 arguments were supplied:
src/commands/import/customs.rs#L22
error[E0061]: this function takes 3 arguments but 4 arguments were supplied
--> src/commands/import/customs.rs:22:21
|
22 | Downloadable::from_url_interactive(&http_client, &server, url, false).await
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------ ------- unexpected argument of type `&model::servertoml::Server`
| |
| expected `&App`, found `&Client`
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: associated function defined here
--> src/model/downloadable/import_url.rs:13:18
|
13 | pub async fn from_url_interactive(
| ^^^^^^^^^^^^^^^^^^^^
14 | app: &App,
| ---------
15 | urlstr: &str,
| ------------
16 | datapack_mode: bool,
| -------------------
help: remove the extra argument
|
22 - Downloadable::from_url_interactive(&http_client, &server, url, false).await
22 + Downloadable::from_url_interactive(/* &App */, url, false).await
|
|
mismatched types:
src/commands/markdown.rs#L157
error[E0308]: mismatched types
--> src/commands/markdown.rs:157:50
|
157 | table.add_from_map(&dp.fetch_info_to_map(http_client).await?);
| ----------------- ^^^^^^^^^^^ expected `&App`, found `&Client`
| |
| arguments to this method are incorrect
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: method defined here
--> src/model/downloadable/markdown.rs:47:18
|
47 | pub async fn fetch_info_to_map(
| ^^^^^^^^^^^^^^^^^
48 | &self,
49 | app: &App,
| ---------
|
mismatched types:
src/commands/markdown.rs#L144
error[E0308]: mismatched types
--> src/commands/markdown.rs:144:53
|
144 | table.add_from_map(&addon.fetch_info_to_map(http_client).await?);
| ----------------- ^^^^^^^^^^^ expected `&App`, found `&Client`
| |
| arguments to this method are incorrect
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: method defined here
--> src/model/downloadable/markdown.rs:47:18
|
47 | pub async fn fetch_info_to_map(
| ^^^^^^^^^^^^^^^^^
48 | &self,
49 | app: &App,
| ---------
|
mismatched types:
src/commands/markdown.rs#L140
error[E0308]: mismatched types
--> src/commands/markdown.rs:140:54
|
140 | table.add_from_map(&plugin.fetch_info_to_map(http_client).await?);
| ----------------- ^^^^^^^^^^^ expected `&App`, found `&Client`
| |
| arguments to this method are incorrect
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: method defined here
--> src/model/downloadable/markdown.rs:47:18
|
47 | pub async fn fetch_info_to_map(
| ^^^^^^^^^^^^^^^^^
48 | &self,
49 | app: &App,
| ---------
|
this function takes 2 arguments but 3 arguments were supplied:
src/util/packwiz.rs#L295
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
--> src/util/packwiz.rs:295:28
|
295 | let Some(dl) = Downloadable::from_pw_mod(&m, http_client, server).await? else {
| ^^^^^^^^^^^^^^^^^^^^^^^^^ -- ----------- ------ unexpected argument of type `&mut model::servertoml::Server`
| | |
| | unexpected argument of type `&reqwest::Client`
| an argument of type `&App` is missing
|
note: associated function defined here
--> src/model/downloadable/packwiz.rs:17:18
|
17 | pub async fn from_pw_mod(
| ^^^^^^^^^^^
18 | app: &App,
| ---------
19 | m: &Mod,
| -------
help: did you mean
|
295 | let Some(dl) = Downloadable::from_pw_mod(/* &App */, &m).await? else {
| ~~~~~~~~~~~~~~~~
|
this function takes 2 arguments but 3 arguments were supplied:
src/util/packwiz.rs#L167
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
--> src/util/packwiz.rs:167:28
|
167 | let Some(dl) = Downloadable::from_pw_mod(&m, http_client, server).await? else {
| ^^^^^^^^^^^^^^^^^^^^^^^^^ -- ----------- ------ unexpected argument of type `&mut model::servertoml::Server`
| | |
| | unexpected argument of type `&reqwest::Client`
| an argument of type `&App` is missing
|
note: associated function defined here
--> src/model/downloadable/packwiz.rs:17:18
|
17 | pub async fn from_pw_mod(
| ^^^^^^^^^^^
18 | app: &App,
| ---------
19 | m: &Mod,
| -------
help: did you mean
|
167 | let Some(dl) = Downloadable::from_pw_mod(/* &App */, &m).await? else {
| ~~~~~~~~~~~~~~~~
|
this function takes 3 arguments but 4 arguments were supplied:
src/commands/import/datapack.rs#L25
error[E0061]: this function takes 3 arguments but 4 arguments were supplied
--> src/commands/import/datapack.rs:25:14
|
25 | let dl = Downloadable::from_url_interactive(&http_client, &server, &urlstr, true).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------ ------- unexpected argument of type `&model::servertoml::Server`
| |
| expected `&App`, found `&Client`
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: associated function defined here
--> src/model/downloadable/import_url.rs:13:18
|
13 | pub async fn from_url_interactive(
| ^^^^^^^^^^^^^^^^^^^^
14 | app: &App,
| ---------
15 | urlstr: &str,
| ------------
16 | datapack_mode: bool,
| -------------------
help: remove the extra argument
|
25 - let dl = Downloadable::from_url_interactive(&http_client, &server, &urlstr, true).await?;
25 + let dl = Downloadable::from_url_interactive(/* &App */, &urlstr, true).await?;
|
|
this function takes 3 arguments but 4 arguments were supplied:
src/commands/import/url.rs#L23
error[E0061]: this function takes 3 arguments but 4 arguments were supplied
--> src/commands/import/url.rs:23:17
|
23 | let addon = Downloadable::from_url_interactive(&http_client, &server, &urlstr, false).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------ ------- unexpected argument of type `&model::servertoml::Server`
| |
| expected `&App`, found `&Client`
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: associated function defined here
--> src/model/downloadable/import_url.rs:13:18
|
13 | pub async fn from_url_interactive(
| ^^^^^^^^^^^^^^^^^^^^
14 | app: &App,
| ---------
15 | urlstr: &str,
| ------------
16 | datapack_mode: bool,
| -------------------
help: remove the extra argument
|
23 - let addon = Downloadable::from_url_interactive(&http_client, &server, &urlstr, false).await?;
23 + let addon = Downloadable::from_url_interactive(/* &App */, &urlstr, false).await?;
|
|
this method takes 4 arguments but 5 arguments were supplied:
src/util/packwiz.rs#L550
error[E0061]: this method takes 4 arguments but 5 arguments were supplied
--> src/util/packwiz.rs:550:14
|
550 | .to_pw_mod(
| ^^^^^^^^^
551 | http_client,
| ----------- expected `&App`, found `&Client`
552 | server,
| ------ unexpected argument of type `&model::servertoml::Server`
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: method defined here
--> src/model/downloadable/packwiz.rs:51:18
|
51 | pub async fn to_pw_mod(
| ^^^^^^^^^
52 | &self,
53 | app: &App,
| ---------
54 | opts: &PackwizExportOptions,
| ---------------------------
55 | is_opt: Option<bool>,
| --------------------
56 | desc_override: &str,
| -------------------
help: remove the extra argument
|
551 - http_client,
551 + /* &App */,
|
|
this method takes 4 arguments but 5 arguments were supplied:
src/util/packwiz.rs#L542
error[E0061]: this method takes 4 arguments but 5 arguments were supplied
--> src/util/packwiz.rs:542:29
|
542 | if let Some(t) = dl.to_pw_mod(http_client, server, opts, None, "").await? {
| ^^^^^^^^^ ----------- ------ unexpected argument of type `&model::servertoml::Server`
| |
| expected `&App`, found `&Client`
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: method defined here
--> src/model/downloadable/packwiz.rs:51:18
|
51 | pub async fn to_pw_mod(
| ^^^^^^^^^
52 | &self,
53 | app: &App,
| ---------
54 | opts: &PackwizExportOptions,
| ---------------------------
55 | is_opt: Option<bool>,
| --------------------
56 | desc_override: &str,
| -------------------
help: remove the extra argument
|
542 - if let Some(t) = dl.to_pw_mod(http_client, server, opts, None, "").await? {
542 + if let Some(t) = dl.to_pw_mod(/* &App */, opts, None, "").await? {
|
|
field `lockfile` specified more than once:
src/commands/build.rs#L43
error[E0062]: field `lockfile` specified more than once
--> src/commands/build.rs:43:9
|
40 | lockfile,
| -------- first use of `lockfile`
...
43 | lockfile: Lockfile::default(),
| ^^^^^^^^ used more than once
|
field `force` specified more than once:
src/commands/build.rs#L42
error[E0062]: field `force` specified more than once
--> src/commands/build.rs:42:9
|
38 | force,
| ----- first use of `force`
...
42 | force: false,
| ^^^^^ used more than once
|
this `else { if .. }` block can be collapsed:
src/model/servertoml/mod.rs#L129
error: this `else { if .. }` block can be collapsed
--> src/model/servertoml/mod.rs:129:20
|
129 | } else {
| ____________________^
130 | | if is_vanilla {
131 | | v.loaders.contains(&"datapack".to_owned())
132 | | } else {
133 | | true
134 | | }
135 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
note: the lint level is defined here
--> src/main.rs:1:9
|
1 | #![deny(clippy::all)]
| ^^^^^^^^^^^
= note: `#[deny(clippy::collapsible_else_if)]` implied by `#[deny(clippy::all)]`
help: collapse nested if block
|
129 ~ } else if is_vanilla {
130 + v.loaders.contains(&"datapack".to_owned())
131 + } else {
132 + true
133 + }
|
|
cannot find value `http_client` in this scope:
src/model/downloadable/packwiz.rs#L185
error[E0425]: cannot find value `http_client` in this scope
--> src/model/downloadable/packwiz.rs:185:41
|
185 | let hash = get_hash_url(http_client, url).await?;
| ^^^^^^^^^^^ not found in this scope
|
cannot find value `http_client` in this scope:
src/model/downloadable/packwiz.rs#L183
error[E0425]: cannot find value `http_client` in this scope
--> src/model/downloadable/packwiz.rs:183:58
|
183 | let filename = self.get_filename(server, http_client).await?;
| ^^^^^^^^^^^ not found in this scope
|
cannot find value `server` in this scope:
src/model/downloadable/packwiz.rs#L183
error[E0425]: cannot find value `server` in this scope
--> src/model/downloadable/packwiz.rs:183:50
|
183 | let filename = self.get_filename(server, http_client).await?;
| ^^^^^^ not found in this scope
|
cannot find value `http_client` in this scope:
src/model/downloadable/packwiz.rs#L116
error[E0425]: cannot find value `http_client` in this scope
--> src/model/downloadable/packwiz.rs:116:58
|
116 | let versions = fetch_curserinth_versions(http_client, id, None).await?;
| ^^^^^^^^^^^ not found in this scope
|
cannot find value `http_client` in this scope:
src/model/downloadable/packwiz.rs#L108
error[E0425]: cannot find value `http_client` in this scope
--> src/model/downloadable/packwiz.rs:108:53
|
108 | let proj = fetch_curserinth_project(http_client, id).await?;
| ^^^^^^^^^^^ not found in this scope
|
cannot find function `fetch_modrinth_versions` in module `modrinth`:
src/commands/add/modrinth.rs#L69
error[E0425]: cannot find function `fetch_modrinth_versions` in module `modrinth`
--> src/commands/add/modrinth.rs:69:30
|
69 | let versions = modrinth::fetch_modrinth_versions(&http_client, &project.slug, None).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^ not found in `modrinth`
|
cannot find function `search_modrinth` in module `modrinth`:
src/commands/add/modrinth.rs#L32
error[E0425]: cannot find function `search_modrinth` in module `modrinth`
--> src/commands/add/modrinth.rs:32:30
|
32 | let projects = modrinth::search_modrinth(&http_client, &query, &facets).await?;
| ^^^^^^^^^^^^^^^ not found in `modrinth`
|
cannot find function `fetch_github_releases` in module `github`:
src/commands/version.rs#L25
error[E0425]: cannot find function `fetch_github_releases` in module `github`
--> src/commands/version.rs:25:28
|
25 | let releases = github::fetch_github_releases(&repo_name, &http_client).await?;
| ^^^^^^^^^^^^^^^^^^^^^ not found in `github`
|
missing lifetime specifier:
src/commands/build.rs#L24
error[E0106]: missing lifetime specifier
--> src/commands/build.rs:24:50
|
24 | pub async fn run(app: App, args: Args) -> Result<BuildContext> {
| ^^^^^^^^^^^^ expected named lifetime parameter
|
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
help: consider using the `'static` lifetime
|
24 | pub async fn run(app: App, args: Args) -> Result<BuildContext<'static>> {
| +++++++++
|
unresolved imports `crate::util::mrpack::mrpack_import_configs`, `crate::util::mrpack::mrpack_read_index`, `crate::util::mrpack::mrpack_source_to_file`:
src/commands/init/mod.rs#L17
error[E0432]: unresolved imports `crate::util::mrpack::mrpack_import_configs`, `crate::util::mrpack::mrpack_read_index`, `crate::util::mrpack::mrpack_source_to_file`
--> src/commands/init/mod.rs:17:27
|
17 | use crate::util::mrpack::{mrpack_import_configs, mrpack_read_index, mrpack_source_to_file};
| ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ no `mrpack_source_to_file` in `util::mrpack`
| | |
| | no `mrpack_read_index` in `util::mrpack`
| no `mrpack_import_configs` in `util::mrpack`
|
unresolved imports `crate::util::mrpack::import_from_mrpack`, `crate::util::mrpack::mrpack_source_to_file`:
src/commands/import/mrpack.rs#L7
error[E0432]: unresolved imports `crate::util::mrpack::import_from_mrpack`, `crate::util::mrpack::mrpack_source_to_file`
--> src/commands/import/mrpack.rs:7:20
|
7 | util::mrpack::{import_from_mrpack, mrpack_source_to_file},
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ no `mrpack_source_to_file` in `util::mrpack`
| |
| no `import_from_mrpack` in `util::mrpack`
|
unresolved import `crate::util::mrpack::export_mrpack`:
src/commands/export/mrpack.rs#L5
error[E0432]: unresolved import `crate::util::mrpack::export_mrpack`
--> src/commands/export/mrpack.rs:5:48
|
5 | use crate::{create_http_client, model::Server, util::mrpack::export_mrpack};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `export_mrpack` in `util::mrpack`
|
file not found for module `mrpack`:
src/util/mod.rs#L5
error[E0583]: file not found for module `mrpack`
--> src/util/mod.rs:5:1
|
5 | pub mod mrpack;
| ^^^^^^^^^^^^^^^
|
= help: to create the module `mrpack`, create file "src/util/mrpack.rs" or "src/util/mrpack/mod.rs"
|
clippy
Clippy had exited with the 101 exit code
|
build (ubuntu-latest)
Process completed with exit code 101.
|
build (windows-latest)
The job was canceled because "ubuntu-latest" failed.
|
build (windows-latest)
The operation was canceled.
|
unused import: `futures::StreamExt`:
src/util/mod.rs#L10
warning: unused import: `futures::StreamExt`
--> src/util/mod.rs:10:5
|
10 | use futures::StreamExt;
| ^^^^^^^^^^^^^^^^^^
|
unused import: `Context`:
src/util/mod.rs#L9
warning: unused import: `Context`
--> src/util/mod.rs:9:14
|
9 | use anyhow::{Context, Result};
| ^^^^^^^
|
unused variable: `url`:
src/app/from_url.rs#L8
warning: unused variable: `url`
--> src/app/from_url.rs:8:9
|
8 | url: &str
| ^^^ help: if this is intentional, prefix it with an underscore: `_url`
|
unused variable: `resolved`:
src/core/worlds.rs#L49
warning: unused variable: `resolved`
--> src/core/worlds.rs:49:28
|
49 | let (path, resolved) = self.downloadable(dl, ".mcman-cache", Some(progress_bar)).await?;
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resolved`
|
unused variable: `path`:
src/core/addons.rs#L32
warning: unused variable: `path`
--> src/core/addons.rs:32:18
|
32 | let (path, resolved) = self.downloadable(addon, addon_type, Some(&pb)).await?;
| ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
|
= note: `#[warn(unused_variables)]` on by default
|
unused imports: `ClientSideMod`, `Server`:
src/model/lockfile/mod.rs#L12
warning: unused imports: `ClientSideMod`, `Server`
--> src/model/lockfile/mod.rs:12:27
|
12 | use super::{Downloadable, ClientSideMod, World, Server};
| ^^^^^^^^^^^^^ ^^^^^^
|
unused imports: `Resolvable`, `model::Server`:
src/model/downloadable/packwiz.rs#L8
warning: unused imports: `Resolvable`, `model::Server`
--> src/model/downloadable/packwiz.rs:8:5
|
8 | model::Server,
| ^^^^^^^^^^^^^
...
11 | Resolvable, App,
| ^^^^^^^^^^
|
binding's name is too similar to existing binding:
src/app/downloading.rs#L111
warning: binding's name is too similar to existing binding
--> src/app/downloading.rs:111:21
|
111 | let mut cache_file = File::open(&cached).await
| ^^^^^^^^^^
|
note: existing binding defined here
--> src/app/downloading.rs:29:13
|
29 | let cached_file = match &resolved.cache {
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names
note: the lint level is defined here
--> src/main.rs:2:9
|
2 | #![warn(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::similar_names)]` implied by `#[warn(clippy::pedantic)]`
|
unused import: `console::style`:
src/core/scripts.rs#L4
warning: unused import: `console::style`
--> src/core/scripts.rs:4:5
|
4 | use console::style;
| ^^^^^^^^^^^^^^
|
unused import: `Stdio`:
src/core/runner.rs#L3
warning: unused import: `Stdio`
--> src/core/runner.rs:3:27
|
3 | process::{ExitStatus, Stdio},
| ^^^^^
|
unused import: `Context`:
src/core/addons.rs#L3
warning: unused import: `Context`
--> src/core/addons.rs:3:14
|
3 | use anyhow::{Context, Result};
| ^^^^^^^
|
unused imports: `Changes`, `Network`, `Server`, `StartupMethod`, `logger::Logger`, `self`:
src/core/mod.rs#L10
warning: unused imports: `Changes`, `Network`, `Server`, `StartupMethod`, `logger::Logger`, `self`
--> src/core/mod.rs:10:13
|
10 | model::{Server, StartupMethod, Network, Lockfile, Changes},
| ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^
11 | util::{self, logger::Logger}, Resolvable, App, ResolvedFile,
| ^^^^ ^^^^^^^^^^^^^^
|
unused imports: `File`, `self`:
src/core/mod.rs#L7
warning: unused imports: `File`, `self`
--> src/core/mod.rs:7:17
|
7 | use tokio::fs::{self, File};
| ^^^^ ^^^^
|
unused imports: `Context`, `anyhow`:
src/core/mod.rs#L3
warning: unused imports: `Context`, `anyhow`
--> src/core/mod.rs:3:14
|
3 | use anyhow::{anyhow, Context, Result};
| ^^^^^^ ^^^^^^^
|
unused import: `time::Instant`:
src/core/mod.rs#L1
warning: unused import: `time::Instant`
--> src/core/mod.rs:1:42
|
1 | use std::{path::PathBuf, process::Child, time::Instant, fmt::Debug};
| ^^^^^^^^^^^^^
|
unused import: `ServerLauncher`:
src/commands/init/mod.rs#L19
warning: unused import: `ServerLauncher`
--> src/commands/init/mod.rs:19:28
|
19 | use crate::model::{Server, ServerLauncher};
| ^^^^^^^^^^^^^^
|
unused import: `Select`:
src/commands/init/mod.rs#L3
warning: unused import: `Select`
--> src/commands/init/mod.rs:3:46
|
3 | use dialoguer::{theme::ColorfulTheme, Input, Select};
| ^^^^^^
|
unused imports: `Network`, `Server`, `create_http_client`:
src/commands/build.rs#L7
warning: unused imports: `Network`, `Server`, `create_http_client`
--> src/commands/build.rs:7:5
|
7 | create_http_client,
| ^^^^^^^^^^^^^^^^^^
8 | model::{Lockfile, Network, Server}, App,
| ^^^^^^^ ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|