this is better #83
Annotations
42 errors and 7 warnings
mismatched types:
src/model/downloadable/mod.rs#L106
error[E0308]: mismatched types
--> src/model/downloadable/mod.rs:106:27
|
106 | filename: filename.clone(),
| ^^^^^^^^^^^^^^^^ expected `String`, found `Option<String>`
|
= note: expected struct `std::string::String`
found enum `std::option::Option<std::string::String>`
|
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 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:16:18
|
16 | pub async fn from_url_interactive(
| ^^^^^^^^^^^^^^^^^^^^
17 | app: &App,
| ---------
18 | urlstr: &str,
| ------------
19 | 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:16:18
|
16 | pub async fn from_url_interactive(
| ^^^^^^^^^^^^^^^^^^^^
17 | app: &App,
| ---------
18 | urlstr: &str,
| ------------
19 | 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
|
|
this function takes 2 arguments but 3 arguments were supplied:
src/util/packwiz.rs#L253
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
--> src/util/packwiz.rs:253:28
|
253 | 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
|
253 | 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#L125
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
--> src/util/packwiz.rs:125:28
|
125 | 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
|
125 | let Some(dl) = Downloadable::from_pw_mod(/* &App */, &m).await? else {
| ~~~~~~~~~~~~~~~~
|
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 3 arguments but 4 arguments were supplied:
src/util/mrpack.rs#L54
error[E0061]: this function takes 3 arguments but 4 arguments were supplied
--> src/util/mrpack.rs:54:22
|
54 | let dl = Downloadable::from_url_interactive(http_client, server, url, false).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------- ------ unexpected argument of type `&mut 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:16:18
|
16 | pub async fn from_url_interactive(
| ^^^^^^^^^^^^^^^^^^^^
17 | app: &App,
| ---------
18 | urlstr: &str,
| ------------
19 | datapack_mode: bool,
| -------------------
help: remove the extra argument
|
54 - let dl = Downloadable::from_url_interactive(http_client, server, url, false).await?;
54 + let dl = Downloadable::from_url_interactive(/* &App */, url, false).await?;
|
|
no method named `download` found for reference `&impl Source` in the current scope:
src/util/mod.rs#L32
error[E0599]: no method named `download` found for reference `&impl Source` in the current scope
--> src/util/mod.rs:32:10
|
31 | let response = downloadable
| ____________________-
32 | | .download(server, client)
| | -^^^^^^^^ method not found in `&impl Source`
| |_________|
|
|
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:16:18
|
16 | pub async fn from_url_interactive(
| ^^^^^^^^^^^^^^^^^^^^
17 | app: &App,
| ---------
18 | urlstr: &str,
| ------------
19 | 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:16:18
|
16 | pub async fn from_url_interactive(
| ^^^^^^^^^^^^^^^^^^^^
17 | app: &App,
| ---------
18 | urlstr: &str,
| ------------
19 | 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#L508
error[E0061]: this method takes 4 arguments but 5 arguments were supplied
--> src/util/packwiz.rs:508:14
|
508 | .to_pw_mod(
| ^^^^^^^^^
509 | http_client,
| ----------- expected `&App`, found `&Client`
510 | 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
|
509 - http_client,
509 + /* &App */,
|
|
this method takes 4 arguments but 5 arguments were supplied:
src/util/packwiz.rs#L500
error[E0061]: this method takes 4 arguments but 5 arguments were supplied
--> src/util/packwiz.rs:500:29
|
500 | 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
|
500 - if let Some(t) = dl.to_pw_mod(http_client, server, opts, None, "").await? {
500 + if let Some(t) = dl.to_pw_mod(/* &App */, opts, None, "").await? {
|
|
no method named `get_url` found for reference `&model::downloadable::Downloadable` in the current scope:
src/util/mrpack.rs#L538
error[E0599]: no method named `get_url` found for reference `&model::downloadable::Downloadable` in the current scope
--> src/util/mrpack.rs:538:37
|
538 | if let Ok(url) = dl.get_url(http_client, server).await {
| ^^^^^^^ method not found in `&Downloadable`
|
no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope:
src/util/mrpack.rs#L537
error[E0599]: no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope
--> src/util/mrpack.rs:537:35
|
537 | let filename = dl.get_filename(server, http_client).await?;
| ^^^^^^^^^^^^ help: there is a method with a similar name: `get_type_name`
|
no method named `get_url` found for reference `&model::downloadable::Downloadable` in the current scope:
src/util/mrpack.rs#L427
error[E0599]: no method named `get_url` found for reference `&model::downloadable::Downloadable` in the current scope
--> src/util/mrpack.rs:427:37
|
427 | if let Ok(url) = dl.get_url(http_client, server).await {
| ^^^^^^^ method not found in `&Downloadable`
|
no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope:
src/util/mrpack.rs#L426
error[E0599]: no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope
--> src/util/mrpack.rs:426:35
|
426 | let filename = dl.get_filename(server, http_client).await?;
| ^^^^^^^^^^^^ help: there is a method with a similar name: `get_type_name`
|
no method named `get_filename` found for reference `&impl Source + std::fmt::Debug` in the current scope:
src/core/mod.rs#L179
error[E0599]: no method named `get_filename` found for reference `&impl Source + std::fmt::Debug` in the current scope
--> src/core/mod.rs:179:14
|
178 | let file_name = dl
| _________________________-
179 | | .get_filename(&self.server, &self.http_client)
| | -^^^^^^^^^^^^ method not found in `&impl Source + std::fmt::Debug`
| |_____________|
|
|
mismatched types:
src/core/serverjar.rs#L123
error[E0308]: mismatched types
--> src/core/serverjar.rs:123:33
|
123 | .get_startup_method(&self.http_client, &serverjar_name, &self.server.mc_version)
| ------------------ ^^^^^^^^^^^^^^^^^ expected `&App`, found `&Client`
| |
| arguments to this method are incorrect
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: method defined here
--> src/model/servertype/mod.rs:241:18
|
241 | pub async fn get_startup_method(
| ^^^^^^^^^^^^^^^^^^
242 | &self,
243 | app: &App,
| ---------
|
mismatched types:
src/core/serverjar.rs#L24
error[E0308]: mismatched types
--> src/core/serverjar.rs:24:33
|
24 | .get_install_method(&self.http_client, &self.server.mc_version)
| ------------------ ^^^^^^^^^^^^^^^^^ expected `&App`, found `&Client`
| |
| arguments to this method are incorrect
|
= note: expected reference `&App`
found reference `&reqwest::Client`
note: method defined here
--> src/model/servertype/mod.rs:160:18
|
160 | pub async fn get_install_method(
| ^^^^^^^^^^^^^^^^^^
161 | &self,
162 | app: &App,
| ---------
|
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`
|
unresolved imports `crate::sources::curserinth::fetch_curserinth_project`, `crate::sources::curserinth::fetch_curserinth_versions`, `crate::sources::modrinth::fetch_modrinth_project`, `crate::sources::modrinth::fetch_modrinth_versions`:
src/util/mrpack.rs#L21
error[E0432]: unresolved imports `crate::sources::curserinth::fetch_curserinth_project`, `crate::sources::curserinth::fetch_curserinth_versions`, `crate::sources::modrinth::fetch_modrinth_project`, `crate::sources::modrinth::fetch_modrinth_versions`
--> src/util/mrpack.rs:21:22
|
21 | curserinth::{fetch_curserinth_project, fetch_curserinth_versions},
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ no `fetch_curserinth_versions` in `sources::curserinth`
| |
| no `fetch_curserinth_project` in `sources::curserinth`
22 | modrinth::{
23 | fetch_modrinth_project, fetch_modrinth_versions, DependencyType, ModrinthVersion,
| ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ no `fetch_modrinth_versions` in `sources::modrinth`
| |
| no `fetch_modrinth_project` in `sources::modrinth`
|
unresolved import `crate::sources::vanilla::fetch_latest_mcver`:
src/commands/init.rs#L19
error[E0432]: unresolved import `crate::sources::vanilla::fetch_latest_mcver`
--> src/commands/init.rs:19:5
|
19 | sources::vanilla::fetch_latest_mcver,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `fetch_latest_mcver` in `sources::vanilla`
|
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: `Context`:
src/util/mod.rs#L9
warning: unused import: `Context`
--> src/util/mod.rs:9:14
|
9 | use anyhow::{Context, Result};
| ^^^^^^^
|
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 variable: `has_in_cache`:
src/sources/github.rs#L205
warning: unused variable: `has_in_cache`
--> src/sources/github.rs:205:13
|
205 | let has_in_cache = self.0.has_in_cache(CACHE_DIR, &cached_file_path);
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_in_cache`
|
= note: `#[warn(unused_variables)]` on by default
|
unused import: `Source`:
src/util/mrpack.rs#L27
warning: unused import: `Source`
--> src/util/mrpack.rs:27:5
|
27 | Source,
| ^^^^^^
|
unused imports: `Source`, `model::Server`:
src/model/downloadable/packwiz.rs#L8
warning: unused imports: `Source`, `model::Server`
--> src/model/downloadable/packwiz.rs:8:5
|
8 | model::Server,
| ^^^^^^^^^^^^^
...
11 | Source, App,
| ^^^^^^
|
unused import: `curserinth::CurseRinthVersion`:
src/model/downloadable/import_url.rs#L7
warning: unused import: `curserinth::CurseRinthVersion`
--> src/model/downloadable/import_url.rs:7:9
|
7 | curserinth::CurseRinthVersion,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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/
|