github, hangar, jenkins, fabric, curserinth #79
Annotations
34 errors and 6 warnings
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.
|
no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope:
src/model/servertype/mod.rs#L478
error[E0599]: no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope
--> src/model/servertype/mod.rs:478:51
|
478 | Self::Downloadable { inner } => inner.get_filename(server, client).await,
| ^^^^^^^^^^^^ help: there is a method with a similar name: `get_type_name`
|
no method named `download` found for reference `&model::downloadable::Downloadable` in the current scope:
src/model/servertype/mod.rs#L392
error[E0599]: no method named `download` found for reference `&model::downloadable::Downloadable` in the current scope
--> src/model/servertype/mod.rs:392:51
|
392 | Self::Downloadable { inner } => inner.download(server, client).await,
| ^^^^^^^^ method not found in `&Downloadable`
|
no method named `download` found for enum `model::downloadable::Downloadable` in the current scope:
src/model/servertype/mod.rs#L378
error[E0599]: no method named `download` found for enum `model::downloadable::Downloadable` in the current scope
--> src/model/servertype/mod.rs:378:33
|
378 | Ok(buildtools().download(server, client).await?)
| ^^^^^^^^ method not found in `Downloadable`
|
::: src/model/downloadable/mod.rs:23:1
|
23 | pub enum Downloadable {
| --------------------- method `download` not found for this enum
|
no method named `download` found for enum `model::downloadable::Downloadable` in the current scope:
src/model/servertype/mod.rs#L376
error[E0599]: no method named `download` found for enum `model::downloadable::Downloadable` in the current scope
--> src/model/servertype/mod.rs:376:52
|
376 | Self::BungeeCord {} => Ok(bungeecord().download(server, client).await?),
| ^^^^^^^^ method not found in `Downloadable`
|
::: src/model/downloadable/mod.rs:23:1
|
23 | pub enum Downloadable {
| --------------------- method `download` not found for this enum
|
mismatched types:
src/sources/jenkins.rs#L160
error[E0308]: mismatched types
--> src/sources/jenkins.rs:160:9
|
160 | let (build_url, _, relative_path, _build_number) =
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 5 elements, found one with 4 elements
161 | get_jenkins_filename(client, url, job, build, artifact).await?;
| -------------------------------------------------------------- this expression has type `(std::string::String, std::string::String, std::string::String, i64, std::option::Option<std::string::String>)`
|
= note: expected tuple `(std::string::String, std::string::String, std::string::String, i64, std::option::Option<std::string::String>)`
found tuple `(_, _, _, _)`
|
not all trait items implemented, missing: `resolve_source`:
src/model/servertype/mod.rs#L342
error[E0046]: not all trait items implemented, missing: `resolve_source`
--> src/model/servertype/mod.rs:342:1
|
342 | impl Source for ServerType {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `resolve_source` in implementation
|
::: src/main.rs:111:5
|
111 | / async fn resolve_source(
112 | | &self,
113 | | app: &App,
114 | | ) -> Result<FileSource>;
| |____________________________- `resolve_source` from trait
|
not all trait items implemented, missing: `resolve_source`:
src/model/downloadable/mod.rs#L143
error[E0046]: not all trait items implemented, missing: `resolve_source`
--> src/model/downloadable/mod.rs:143:1
|
143 | impl Source for Downloadable {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `resolve_source` in implementation
|
::: src/main.rs:111:5
|
111 | / async fn resolve_source(
112 | | &self,
113 | | app: &App,
114 | | ) -> Result<FileSource>;
| |____________________________- `resolve_source` from trait
|
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`
| |_________|
|
|
the size for values of type `str` cannot be known at compilation time:
src/model/downloadable/markdown.rs#L104
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> src/model/downloadable/markdown.rs:104:70
|
104 | let desc = fetch_repo_description(client, repo).await?;
| ^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
note: required by a bound in `std::ops::ControlFlow::Break`
--> /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/control_flow.rs:93:5
|
the size for values of type `str` cannot be known at compilation time:
src/model/downloadable/markdown.rs#L104
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> src/model/downloadable/markdown.rs:104:28
|
104 | let desc = fetch_repo_description(client, repo).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
= 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 `str` cannot be known at compilation time:
src/model/downloadable/markdown.rs#L104
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> src/model/downloadable/markdown.rs:104:21
|
104 | let desc = fetch_repo_description(client, repo).await?;
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
|
no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope:
src/model/downloadable/packwiz.rs#L203
error[E0599]: no method named `get_filename` found for reference `&model::downloadable::Downloadable` in the current scope
--> src/model/downloadable/packwiz.rs:203:37
|
203 | let filename = self.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 `&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_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`
| |_____________|
|
|
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 function `fetch_fabric_latest_installer` in module `fabric`:
src/model/servertype/mod.rs#L459
error[E0425]: cannot find function `fetch_fabric_latest_installer` in module `fabric`
--> src/model/servertype/mod.rs:459:41
|
459 | "latest" => fabric::fetch_fabric_latest_installer(client).await?,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `fabric`
|
cannot find function `fetch_fabric_latest_loader` in module `fabric`:
src/model/servertype/mod.rs#L454
error[E0425]: cannot find function `fetch_fabric_latest_loader` in module `fabric`
--> src/model/servertype/mod.rs:454:41
|
454 | "latest" => fabric::fetch_fabric_latest_loader(client).await?,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `fabric`
|
cannot find function `download_fabric` in module `fabric`:
src/model/servertype/mod.rs#L369
error[E0425]: cannot find function `download_fabric` in module `fabric`
--> src/model/servertype/mod.rs:369:28
|
369 | Ok(fabric::download_fabric(client, &mcver, loader, installer).await?)
| ^^^^^^^^^^^^^^^ not found in `fabric`
|
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`
|
method `get_filename` is not a member of trait `Source`:
src/model/servertype/mod.rs#L396
error[E0407]: method `get_filename` is not a member of trait `Source`
--> src/model/servertype/mod.rs:396:5
|
396 | / async fn get_filename(&self, server: &Server, client: &reqwest::Client) -> Result<String> {
397 | | let mcver = server.mc_version.clone();
398 | | match self {
399 | | Self::Vanilla {} => Ok(format!("server-{mcver}.jar")),
... |
479 | | }
480 | | }
| |_____^ not a member of trait `Source`
|
method `download` is not a member of trait `Source`:
src/model/servertype/mod.rs#L343
error[E0407]: method `download` is not a member of trait `Source`
--> src/model/servertype/mod.rs:343:5
|
343 | / async fn download(
344 | | &self,
345 | | server: &Server,
346 | | client: &reqwest::Client,
... |
393 | | }
394 | | }
| |_____^ not a member of trait `Source`
|
method `get_filename` is not a member of trait `Source`:
src/model/downloadable/mod.rs#L156
error[E0407]: method `get_filename` is not a member of trait `Source`
--> src/model/downloadable/mod.rs:156:5
|
156 | / async fn get_filename(&self, server: &Server, client: &reqwest::Client) -> Result<String> {
157 | | let mcver = &server.mc_version;
158 | |
159 | | match self {
... |
214 | | }
215 | | }
| |_____^ not a member of trait `Source`
|
method `download` is not a member of trait `Source`:
src/model/downloadable/mod.rs#L144
error[E0407]: method `download` is not a member of trait `Source`
--> src/model/downloadable/mod.rs:144:5
|
144 | / async fn download(
145 | | &self,
146 | | server: &Server,
147 | | client: &reqwest::Client,
... |
153 | | .error_for_status()?)
154 | | }
| |_____^ not a member of trait `Source`
|
unresolved imports `crate::sources::curserinth::fetch_curserinth_project`, `crate::sources::curserinth::fetch_curserinth_versions`:
src/util/mrpack.rs#L21
error[E0432]: unresolved imports `crate::sources::curserinth::fetch_curserinth_project`, `crate::sources::curserinth::fetch_curserinth_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`
|
unresolved imports `crate::sources::curserinth::fetch_curserinth_project`, `crate::sources::curserinth::fetch_curserinth_versions`:
src/model/downloadable/packwiz.rs#L10
error[E0432]: unresolved imports `crate::sources::curserinth::fetch_curserinth_project`, `crate::sources::curserinth::fetch_curserinth_versions`
--> src/model/downloadable/packwiz.rs:10:22
|
10 | curserinth::{fetch_curserinth_project, fetch_curserinth_versions},
| ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ no `fetch_curserinth_versions` in `sources::curserinth`
| |
| no `fetch_curserinth_project` in `sources::curserinth`
|
unresolved imports `crate::sources::curserinth::fetch_curserinth_project`, `crate::sources::github::fetch_repo_description`:
src/model/downloadable/markdown.rs#L8
error[E0432]: unresolved imports `crate::sources::curserinth::fetch_curserinth_project`, `crate::sources::github::fetch_repo_description`
--> src/model/downloadable/markdown.rs:8:9
|
8 | curserinth::fetch_curserinth_project,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `fetch_curserinth_project` in `sources::curserinth`
9 | github::fetch_repo_description,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `fetch_repo_description` in `sources::github`
|
unresolved imports `crate::sources::curserinth::fetch_curserinth_versions`, `crate::sources::github::fetch_github_releases`:
src/model/downloadable/import_url.rs#L8
error[E0432]: unresolved imports `crate::sources::curserinth::fetch_curserinth_versions`, `crate::sources::github::fetch_github_releases`
--> src/model/downloadable/import_url.rs:8:22
|
8 | curserinth::{fetch_curserinth_versions, CurseRinthVersion},
| ^^^^^^^^^^^^^^^^^^^^^^^^^ no `fetch_curserinth_versions` in `sources::curserinth`
9 | github::fetch_github_releases,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `fetch_github_releases` in `sources::github`
|
unresolved imports `crate::sources::curserinth::fetch_curserinth_filename`, `crate::sources::curserinth::get_curserinth_url`, `crate::sources::github::fetch_github_release_filename`, `crate::sources::github::get_github_release_url`:
src/model/downloadable/mod.rs#L10
error[E0432]: unresolved imports `crate::sources::curserinth::fetch_curserinth_filename`, `crate::sources::curserinth::get_curserinth_url`, `crate::sources::github::fetch_github_release_filename`, `crate::sources::github::get_github_release_url`
--> src/model/downloadable/mod.rs:10:18
|
10 | curserinth::{fetch_curserinth_filename, get_curserinth_url},
| ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `get_curserinth_url` in `sources::curserinth`
| |
| no `fetch_curserinth_filename` in `sources::curserinth`
11 | github::{fetch_github_release_filename, get_github_release_url},
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ no `get_github_release_url` in `sources::github`
| |
| no `fetch_github_release_filename` in `sources::github`
|
unresolved imports `crate::sources::hangar::get_hangar_url`, `crate::sources::hangar::get_hangar_filename`:
src/model/downloadable/mod.rs#L5
error[E0432]: unresolved imports `crate::sources::hangar::get_hangar_url`, `crate::sources::hangar::get_hangar_filename`
--> src/model/downloadable/mod.rs:5:30
|
5 | use crate::sources::hangar::{get_hangar_url, get_hangar_filename};
| ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ no `get_hangar_filename` in `sources::hangar`
| |
| no `get_hangar_url` in `sources::hangar`
|
clippy
Clippy had exited with the 101 exit code
|
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: `Source`:
src/util/mrpack.rs#L27
warning: unused import: `Source`
--> src/util/mrpack.rs:27:5
|
27 | Source,
| ^^^^^^
|
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: `VersionsFilter`:
src/sources/hangar.rs#L4
warning: unused import: `VersionsFilter`
--> src/sources/hangar.rs:4:21
|
4 | use mcapi::hangar::{VersionsFilter, ProjectVersion, Platform};
| ^^^^^^^^^^^^^^
|
unused import: `Source`:
src/model/downloadable/packwiz.rs#L14
warning: unused import: `Source`
--> src/model/downloadable/packwiz.rs:14:5
|
14 | Source,
| ^^^^^^
|
= 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/
|