Skip to content

Merge pull request #235 from NotThorny/Merge-Compat #305

Merge pull request #235 from NotThorny/Merge-Compat

Merge pull request #235 from NotThorny/Merge-Compat #305

GitHub Actions / clippy (macOS) failed Oct 30, 2024 in 0s

clippy (macOS)

15 errors

Details

Results

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

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511ee 2024-10-15)

Annotations

Check failure on line 365 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

unused variable: `process`

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`

Check failure on line 365 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

unused variable: `window`

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)]`

Check failure on line 366 in src/system_helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

mismatched types

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

Check failure on line 3 in src/patch.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

unused import: `crate::system_helpers`

error: unused import: `crate::system_helpers`
 --> src/patch.rs:3:5
  |
3 | use crate::system_helpers;
  |     ^^^^^^^^^^^^^^^^^^^^^

Check failure on line 2 in src/patch.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

unused import: `crate::file_helpers`

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)]`

Check failure on line 273 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

cannot find function `unpatch_game` in module `patch`

error[E0425]: cannot find function `unpatch_game` in module `patch`
   --> src/main.rs:273:19
    |
273 |   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")]
    |       ^^^^^^^^^^^^^^^^^^^

Check failure on line 122 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

cannot find function `run_un_elevated` in module `system_helpers`

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")]
    |       ^^^^^^^^^^^^^^^^^^^

Check failure on line 113 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

cannot find function `patch_game` in module `patch`

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")]
    |       ^^^^^^^^^^^^^^^^^^^

Check failure on line 228 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

failed to resolve: could not find `__cmd__unpatch_game` in `patch`

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`

Check failure on line 227 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

failed to resolve: could not find `__cmd__patch_game` in `patch`

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`

Check failure on line 224 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

failed to resolve: could not find `__cmd__run_un_elevated` in `system_helpers`

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`

Check failure on line 215 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

failed to resolve: could not find `__cmd__stop_service` in `system_helpers`

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`

Check failure on line 214 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

failed to resolve: could not find `__cmd__service_status` in `system_helpers`

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`

Check failure on line 213 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

failed to resolve: could not find `__cmd__start_service` in `system_helpers`

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`

Check failure on line 212 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy (macOS)

failed to resolve: could not find `__cmd__run_program_relative` in `system_helpers`

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`