feat(all): open on startup and start minimized #246
Annotations
13 errors and 15 warnings
rustfmt
The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L278
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:278:19
|
278 | .set_app_path(¤t_exe.to_str().unwrap())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `current_exe.to_str().unwrap()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L277
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:277:19
|
277 | .set_app_name(&app_name)
| ^^^^^^^^^ help: change this to: `app_name`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
|
this `if` statement can be collapsed:
src/main.rs#L259
error: this `if` statement can be collapsed
--> src/main.rs:259:3
|
259 | / if startup {
260 | | if config::get_startup_minimize() {
261 | | window.hide().unwrap_or_default();
262 | | }
263 | | }
| |___^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `-D clippy::collapsible-if` implied by `-D warnings`
help: collapse nested if block
|
259 ~ if startup && config::get_startup_minimize() {
260 + window.hide().unwrap_or_default();
261 + }
|
|
clippy (ubuntu-latest)
Clippy had exited with the 101 exit code
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L278
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:278:19
|
278 | .set_app_path(¤t_exe.to_str().unwrap())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `current_exe.to_str().unwrap()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
this expression creates a reference which is immediately dereferenced by the compiler:
src/main.rs#L277
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/main.rs:277:19
|
277 | .set_app_name(&app_name)
| ^^^^^^^^^ help: change this to: `app_name`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
|
function `start_hotkey_watcher` is never used:
src/hotkeys.rs#L15
error: function `start_hotkey_watcher` is never used
--> src/hotkeys.rs:15:8
|
15 | pub fn start_hotkey_watcher(win: tauri::Window) {
| ^^^^^^^^^^^^^^^^^^^^
|
function `get_ptt_keys` is never used:
src/config.rs#L103
error: function `get_ptt_keys` is never used
--> src/config.rs:103:8
|
103 | pub fn get_ptt_keys() -> Vec<String> {
| ^^^^^^^^^^^^
|
function `get_ptt` is never used:
src/config.rs#L97
error: function `get_ptt` is never used
--> src/config.rs:97:8
|
97 | pub fn get_ptt() -> bool {
| ^^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
|
this `if` statement can be collapsed:
src/main.rs#L259
error: this `if` statement can be collapsed
--> src/main.rs:259:3
|
259 | / if startup {
260 | | if config::get_startup_minimize() {
261 | | window.hide().unwrap_or_default();
262 | | }
263 | | }
| |___^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `-D clippy::collapsible-if` implied by `-D warnings`
help: collapse nested if block
|
259 ~ if startup && config::get_startup_minimize() {
260 + window.hide().unwrap_or_default();
261 + }
|
|
clippy (macos-12)
Clippy had exited with the 101 exit code
|
clippy (windows-latest)
The operation was canceled.
|
rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy (ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: Swatinem/rust-cache@v1, 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/
|
clippy (ubuntu-latest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (ubuntu-latest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (ubuntu-latest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (macos-12)
The following actions uses node12 which is deprecated and will be forced to run on node16: Swatinem/rust-cache@v1, 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/
|
clippy (macos-12)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (macos-12)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (macos-12)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (windows-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: Swatinem/rust-cache@v1, 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/
|
clippy (windows-latest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (windows-latest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (windows-latest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy (windows-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|