Update README.md #354
frontend-checks.yml
on: push
prettier-tsc-eslint-checks
34s
Annotations
20 errors and 1 warning
unused variable: `process`:
src/main.rs#L365
error: unused variable: `process`
--> src/main.rs:365:50
|
365 | fn enable_process_watcher(window: tauri::Window, process: String) {}
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_process`
|
unused variable: `window`:
src/main.rs#L365
error: unused variable: `window`
--> src/main.rs:365:27
|
365 | fn enable_process_watcher(window: tauri::Window, process: String) {}
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_window`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
|
mismatched types:
src/system_helpers.rs#L366
error[E0308]: mismatched types
--> src/system_helpers.rs:366:30
|
366 | pub fn install_location() -> String {
| ---------------- ^^^^^^ expected `String`, found `()`
| |
| implicitly returns `()` as its body has no tail or `return` expression
|
unused import: `crate::system_helpers`:
src/patch.rs#L3
error: unused import: `crate::system_helpers`
--> src/patch.rs:3:5
|
3 | use crate::system_helpers;
| ^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::file_helpers`:
src/patch.rs#L2
error: unused import: `crate::file_helpers`
--> src/patch.rs:2:5
|
2 | use crate::file_helpers;
| ^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
|
cannot find function `unpatch_game` in module `patch`:
src/main.rs#L193
error[E0425]: cannot find function `unpatch_game` in module `patch`
--> src/main.rs:193:21
|
193 | block_on(patch::unpatch_game());
| ^^^^^^^^^^^^ not found in `patch`
|
note: found an item that was configured out
--> src/patch.rs:256:14
|
256 | pub async fn unpatch_game() -> bool {
| ^^^^^^^^^^^^
note: the item is gated here
--> src/patch.rs:254:1
|
254 | #[cfg(windows)]
| ^^^^^^^^^^^^^^^
note: found an item that was configured out
--> src/patch.rs:301:14
|
301 | pub async fn unpatch_game() -> bool {
| ^^^^^^^^^^^^
note: the item is gated behind the `linux` feature
--> src/patch.rs:299:7
|
299 | #[cfg(target_os = "linux")]
| ^^^^^^^^^^^^^^^^^^^
|
cannot find function `run_un_elevated` in module `system_helpers`:
src/main.rs#L122
error[E0425]: cannot find function `run_un_elevated` in module `system_helpers`
--> src/main.rs:122:25
|
122 | system_helpers::run_un_elevated(game_path.unwrap(), Some(game_args))
| ^^^^^^^^^^^^^^^ not found in `system_helpers`
|
note: found an item that was configured out
--> src/system_helpers.rs:249:8
|
249 | pub fn run_un_elevated(path: String, args: Option<String>) {
| ^^^^^^^^^^^^^^^
note: the item is gated behind the `windows` feature
--> src/system_helpers.rs:247:7
|
247 | #[cfg(target_os = "windows")]
| ^^^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
--> src/system_helpers.rs:301:8
|
301 | pub fn run_un_elevated(path: String, args: Option<String>) {
| ^^^^^^^^^^^^^^^
note: the item is gated behind the `linux` feature
--> src/system_helpers.rs:299:7
|
299 | #[cfg(target_os = "linux")]
| ^^^^^^^^^^^^^^^^^^^
|
cannot find function `patch_game` in module `patch`:
src/main.rs#L113
error[E0425]: cannot find function `patch_game` in module `patch`
--> src/main.rs:113:12
|
113 | patch::patch_game(false, 0.to_string()).await;
| ^^^^^^^^^^ not found in `patch`
|
note: found an item that was configured out
--> src/patch.rs:53:14
|
53 | pub async fn patch_game(newer_game: bool, version: String) -> bool {
| ^^^^^^^^^^
note: the item is gated here
--> src/patch.rs:51:1
|
51 | #[cfg(windows)]
| ^^^^^^^^^^^^^^^
note: found an item that was configured out
--> src/patch.rs:182:14
|
182 | pub async fn patch_game(_newer_game: bool, _version: String) -> bool {
| ^^^^^^^^^^
note: the item is gated behind the `linux` feature
--> src/patch.rs:180:7
|
180 | #[cfg(target_os = "linux")]
| ^^^^^^^^^^^^^^^^^^^
|
failed to resolve: could not find `__cmd__unpatch_game` in `patch`:
src/main.rs#L228
error[E0433]: failed to resolve: could not find `__cmd__unpatch_game` in `patch`
--> src/main.rs:228:16
|
228 | patch::unpatch_game,
| ^^^^^^^^^^^^ could not find `__cmd__unpatch_game` in `patch`
|
failed to resolve: could not find `__cmd__patch_game` in `patch`:
src/main.rs#L227
error[E0433]: failed to resolve: could not find `__cmd__patch_game` in `patch`
--> src/main.rs:227:16
|
227 | patch::patch_game,
| ^^^^^^^^^^ could not find `__cmd__patch_game` in `patch`
|
failed to resolve: could not find `__cmd__run_un_elevated` in `system_helpers`:
src/main.rs#L224
error[E0433]: failed to resolve: could not find `__cmd__run_un_elevated` in `system_helpers`
--> src/main.rs:224:25
|
224 | system_helpers::run_un_elevated,
| ^^^^^^^^^^^^^^^ could not find `__cmd__run_un_elevated` in `system_helpers`
|
failed to resolve: could not find `__cmd__stop_service` in `system_helpers`:
src/main.rs#L215
error[E0433]: failed to resolve: could not find `__cmd__stop_service` in `system_helpers`
--> src/main.rs:215:25
|
215 | system_helpers::stop_service,
| ^^^^^^^^^^^^ could not find `__cmd__stop_service` in `system_helpers`
|
failed to resolve: could not find `__cmd__service_status` in `system_helpers`:
src/main.rs#L214
error[E0433]: failed to resolve: could not find `__cmd__service_status` in `system_helpers`
--> src/main.rs:214:25
|
214 | system_helpers::service_status,
| ^^^^^^^^^^^^^^ could not find `__cmd__service_status` in `system_helpers`
|
failed to resolve: could not find `__cmd__start_service` in `system_helpers`:
src/main.rs#L213
error[E0433]: failed to resolve: could not find `__cmd__start_service` in `system_helpers`
--> src/main.rs:213:25
|
213 | system_helpers::start_service,
| ^^^^^^^^^^^^^ could not find `__cmd__start_service` in `system_helpers`
|
failed to resolve: could not find `__cmd__run_program_relative` in `system_helpers`:
src/main.rs#L212
error[E0433]: failed to resolve: could not find `__cmd__run_program_relative` in `system_helpers`
--> src/main.rs:212:25
|
212 | system_helpers::run_program_relative,
| ^^^^^^^^^^^^^^^^^^^^ could not find `__cmd__run_program_relative` in `system_helpers`
|
called `unwrap` on `response` after checking its variant with `is_some`:
src/web.rs#L40
error: called `unwrap` on `response` after checking its variant with `is_some`
--> src/web.rs:40:12
|
39 | if response.is_some() {
| --------------------- help: try: `if let Some(..) = response`
40 | return response.unwrap().status().as_str() == "200";
| ^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
= note: `-D clippy::unnecessary-unwrap` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_unwrap)]`
|
current MSRV (Minimum Supported Rust Version) is `1.57.0` but this item is stable since `1.58.0`:
src/system_helpers.rs#L697
error: current MSRV (Minimum Supported Rust Version) is `1.57.0` but this item is stable since `1.58.0`
--> src/system_helpers.rs:697:18
|
697 | while java_bin.is_symlink() {
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
|
current MSRV (Minimum Supported Rust Version) is `1.57.0` but this item is stable since `1.58.0`:
src/system_helpers.rs#L677
error: current MSRV (Minimum Supported Rust Version) is `1.57.0` but this item is stable since `1.58.0`
--> src/system_helpers.rs:677:18
|
677 | while java_bin.is_symlink() {
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
= note: `-D clippy::incompatible-msrv` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::incompatible_msrv)]`
|
method `in_terminal_noclose` is never used:
src/system_helpers.rs#L69
error: method `in_terminal_noclose` is never used
--> src/system_helpers.rs:69:6
|
67 | trait InTerminalEmulator {
| ------------------ method in this trait
68 | fn in_terminal(&self) -> Self;
69 | fn in_terminal_noclose(&self) -> Self;
| ^^^^^^^^^^^^^^^^^^^
|
method `as_root` is never used:
src/system_helpers.rs#L48
error: method `as_root` is never used
--> src/system_helpers.rs:48:6
|
47 | pub trait AsRoot {
| ------ method in this trait
48 | fn as_root(&self) -> Self;
| ^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
|
prettier-tsc-eslint-checks
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|