Skip to content

tidy up oxr extension list #555

tidy up oxr extension list

tidy up oxr extension list #555

Triggered via push May 30, 2024 20:39
Status Failure
Total duration 25m 42s
Artifacts

rust.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 183 warnings
build_alxr_win_x64
Error: The process 'D:\a\ALVR\ALVR\cuda_installer-windows-10.0.20348-12.3.2\cuda_installer-windows-10.0.20348_12.3.2.exe' failed with exit code 2147944003
rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, 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/
rustfmt
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/
rustfmt
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/
rustfmt
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/
rustfmt
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/
tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, 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/
tests
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/
tests
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/
tests
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/
tests
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/
tests
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/
tests
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/
tests
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/
tests
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/
build_alxr_linux_portable
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build_alxr_linux_portable
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build_alxr_linux_portable
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/
build_alxr_linux_portable
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/
build_alxr_linux_portable
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/
build_alxr_linux_portable
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/
build_linux
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build_linux
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, 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/
build_linux
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/
build_linux
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/
build_linux
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/
build_linux
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/
build_linux
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/
build_linux
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/
build_linux
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/
build_linux
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/
build_windows
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build_windows
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, 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/
build_windows
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/
build_windows
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/
build_windows
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/
build_windows
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/
build_windows
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/
build_windows
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/
build_windows
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/
build_windows
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/
build_alxr_linux
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build_alxr_linux
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, 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/
build_alxr_linux
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/
build_alxr_linux
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/
build_alxr_linux
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/
build_alxr_linux
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/
very complex type used. Consider factoring parts into `type` definitions: alvr\server\src\lib.rs#L54
warning: very complex type used. Consider factoring parts into `type` definitions --> alvr\server\src\lib.rs:54:30 | 54 | static ref VIDEO_SENDER: Mutex<Option<mpsc::UnboundedSender<(VideoFrameHeaderPacket, Vec<u8>)>>> = | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity = note: `#[warn(clippy::type_complexity)]` on by default
field `version` is never read: alvr\server\src\connection.rs#L88
warning: field `version` is never read --> alvr\server\src\connection.rs:88:5 | 86 | struct ConnectionInfo { | -------------- field in this struct 87 | client_ip: IpAddr, 88 | version: Option<Version>, | ^^^^^^^
field `hostname` is never read: alvr\server\src\connection.rs#L53
warning: field `hostname` is never read --> alvr\server\src\connection.rs:53:5 | 52 | struct ClientId { | -------- field in this struct 53 | hostname: String, | ^^^^^^^^ | = note: `ClientId` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
unused import: `prelude::*`: alvr\server\src\lib.rs#L19
warning: unused import: `prelude::*` --> alvr\server\src\lib.rs:19:37 | 19 | use alvr_common::{lazy_static, log, prelude::*, ALVR_VERSION}; | ^^^^^^^^^^
unused imports: `Mat4`, `log`: alvr\server\src\connection.rs#L8
warning: unused imports: `Mat4`, `log` --> alvr\server\src\connection.rs:8:12 | 8 | glam::{Mat4, Quat, Vec2, Vec3}, | ^^^^ 9 | log, | ^^^ | = note: `#[warn(unused_imports)]` on by default
deref which would be done by auto-deref: alvr\audio\src\lib.rs#L638
warning: deref which would be done by auto-deref --> alvr\audio\src\lib.rs:638:17 | 638 | &mut *self.sample_buffer.lock(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut self.sample_buffer.lock()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref = note: `#[warn(clippy::explicit_auto_deref)]` on by default
field `stream_id` is never read: alvr\sockets\src\stream_socket\mod.rs#L220
warning: field `stream_id` is never read --> alvr\sockets\src\stream_socket\mod.rs:220:5 | 219 | pub struct StreamReceiver<T> { | -------------- field in this struct 220 | stream_id: StreamId, | ^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
the borrowed expression implements the required traits: alvr\session\src\lib.rs#L617
warning: the borrowed expression implements the required traits --> alvr\session\src\lib.rs:617:53 | 617 | let session_desc = match fs::read_to_string(&session_path) { | ^^^^^^^^^^^^^ help: change this to: `session_path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
useless use of `vec!`: alvr\xtask\src\main.rs#L1153
warning: useless use of `vec!` --> alvr\xtask\src\main.rs:1153:36 | 1153 | let flavours = vec![ | ____________________________________^ 1154 | | (for_generic, AndroidFlavor::Generic, abi_target.clone()), 1155 | | (for_pico, AndroidFlavor::Pico, Option::None), 1156 | | ]; | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec = note: `#[warn(clippy::useless_vec)]` on by default help: you can use an array directly | 1153 ~ let flavours = [(for_generic, AndroidFlavor::Generic, abi_target.clone()), 1154 ~ (for_pico, AndroidFlavor::Pico, Option::None)]; |
struct update has no effect, all the fields in the struct have already been specified: alvr\xtask\src\main.rs#L1086
warning: struct update has no effect, all the fields in the struct have already been specified --> alvr\xtask\src\main.rs:1086:27 | 1086 | ..Default::default() | ^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update = note: `#[warn(clippy::needless_update)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: alvr\xtask\src\main.rs#L965
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\xtask\src\main.rs:965:41 | 965 | .filter(|entry| is_package_file(&entry)) | ^^^^^^ help: change this to: `entry` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
unneeded `return` statement: alvr\xtask\src\main.rs#L957
warning: unneeded `return` statement --> alvr\xtask\src\main.rs:957:13 | 957 | return ["apk", "aar", "idsig"].contains(&ext_str); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 957 - return ["apk", "aar", "idsig"].contains(&ext_str); 957 + ["apk", "aar", "idsig"].contains(&ext_str) |
this expression creates a reference which is immediately dereferenced by the compiler: alvr\xtask\src\main.rs#L838
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\xtask\src\main.rs:838:61 | 838 | let run_ait_cmd = |cmd: &str| command::run_in(&ait_dir, &cmd).unwrap(); | ^^^^ help: change this to: `cmd` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
manual implementation of an assign operation: alvr\xtask\src\main.rs#L811
warning: manual implementation of an assign operation --> alvr\xtask\src\main.rs:811:9 | 811 | archs = archs + "_debug"; | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `archs += "_debug"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern = note: `#[warn(clippy::assign_op_pattern)]` on by default
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L805
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:805:36 | 805 | alxr_client_build_dir.join(&cert), | ^^^^^ help: change this to: `cert` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L804
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:804:30 | 804 | alxr_client_dir.join(&cert), | ^^^^^ help: change this to: `cert` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
redundant closure: alvr\xtask\src\main.rs#L774
warning: redundant closure --> alvr\xtask\src\main.rs:774:57 | 774 | for arch in [UWPArch::X86_64, UWPArch::Aarch64].map(|x| batch_arch_str(x)) { | ^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `batch_arch_str` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `#[warn(clippy::redundant_closure)]` on by default
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L771
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:771:52 | 771 | let pack_map_path = alxr_client_build_dir.join(&pack_map_fname); | ^^^^^^^^^^^^^^^ help: change this to: `pack_map_fname` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
this expression creates a reference which is immediately dereferenced by the compiler: alvr\xtask\src\main.rs#L767
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\xtask\src\main.rs:767:24 | 767 | .unwrap_or(&alxr_client_build_dir), | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `alxr_client_build_dir` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L748
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:748:32 | 748 | fs::copy(&src_packed_file, &dst_packed_file).unwrap(); | ^^^^^^^^^^^^^^^^ help: change this to: `dst_packed_file` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L721
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:721:69 | 721 | let relative_path = linked_depend_file.strip_prefix(&linked_path).unwrap(); | ^^^^^^^^^^^^ help: change this to: `linked_path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
this expression creates a reference which is immediately dereferenced by the compiler: alvr\xtask\src\main.rs#L719
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\xtask\src\main.rs:719:56 | 719 | .filter(|entry| is_linked_depends_file(&entry)) | ^^^^^^ help: change this to: `entry` | = 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: alvr\xtask\src\main.rs#L677
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\xtask\src\main.rs:677:36 | 677 | if afs::is_dynlib_file(&path) { | ^^^^^ help: change this to: `path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
unneeded `return` statement: alvr\xtask\src\main.rs#L697
warning: unneeded `return` statement --> alvr\xtask\src\main.rs:697:13 | 697 | return false; | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 697 - return false; 697 + false |
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L606
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:606:40 | 606 | alxr_client_build_dir.join(&pdb_fname), | ^^^^^^^^^^ help: change this to: `pdb_fname` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L605
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:605:32 | 605 | artifacts_dir.join(&pdb_fname), | ^^^^^^^^^^ help: change this to: `pdb_fname` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
this expression creates a reference which is immediately dereferenced by the compiler: alvr\xtask\src\main.rs#L593
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\xtask\src\main.rs:593:52 | 593 | .filter(|entry| is_linked_depends_file(&entry)) | ^^^^^^ help: change this to: `entry` | = 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: alvr\xtask\src\main.rs#L562
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\xtask\src\main.rs:562:32 | 562 | if afs::is_dynlib_file(&path) { | ^^^^^ help: change this to: `path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
unneeded `return` statement: alvr\xtask\src\main.rs#L582
warning: unneeded `return` statement --> alvr\xtask\src\main.rs:582:9 | 582 | return false; | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `#[warn(clippy::needless_return)]` on by default help: remove `return` | 582 - return false; 582 + false |
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L519
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:519:62 | 519 | if so_filename.to_string_lossy().starts_with(&key) { | ^^^^ help: change this to: `key` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
this expression creates a reference which is immediately dereferenced by the compiler: alvr\xtask\src\main.rs#L516
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\xtask\src\main.rs:516:52 | 516 | .filter(|path| afs::is_dynlib_file(&path)) | ^^^^^ help: change this to: `path` | = 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: alvr\xtask\src\main.rs#L502
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\xtask\src\main.rs:502:13 | 502 | &ffmpeg_build_dir, | ^^^^^^^^^^^^^^^^^ help: change this to: `ffmpeg_build_dir` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
length comparison to zero: alvr\xtask\src\main.rs#L469
warning: length comparison to zero --> alvr\xtask\src\main.rs:469:16 | 469 | if build_str.len() > 0 { | ^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!build_str.is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
length comparison to zero: alvr\xtask\src\main.rs#L468
warning: length comparison to zero --> alvr\xtask\src\main.rs:468:12 | 468 | if features.len() > 0 { | ^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!features.is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
writing `&Vec` instead of `&[_]` involves a new object where a slice will do: alvr\xtask\src\main.rs#L456
warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do --> alvr\xtask\src\main.rs:456:26 | 456 | fn to_str_vec(m: &Vec<(bool, &'static str)>) -> Vec<&'static str> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&[(bool, &'static str)]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg = note: `#[warn(clippy::ptr_arg)]` on by default
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`: alvr\xtask\src\main.rs#L401
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> alvr\xtask\src\main.rs:401:21 | 401 | / match lp.as_str().strip_prefix("native=") { 402 | | Some(p) => { 403 | | linked_path_set.insert(p.into()); 404 | | } 405 | | None => (), 406 | | } | |_____________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match help: try | 401 ~ if let Some(p) = lp.as_str().strip_prefix("native=") { 402 + linked_path_set.insert(p.into()); 403 + } |
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`: alvr\xtask\src\main.rs#L398
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> alvr\xtask\src\main.rs:398:9 | 398 | / match message? { 399 | | Message::BuildScriptExecuted(script) => { 400 | | for lp in script.linked_paths.iter() { 401 | | match lp.as_str().strip_prefix("native=") { ... | 409 | | _ => (), 410 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match = note: `#[warn(clippy::single_match)]` on by default help: try | 398 ~ if let Message::BuildScriptExecuted(script) = message? { 399 + for lp in script.linked_paths.iter() { 400 + match lp.as_str().strip_prefix("native=") { 401 + Some(p) => { 402 + linked_path_set.insert(p.into()); 403 + } 404 + None => (), 405 + } 406 + } 407 + } |
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L383
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:383:50 | 383 | let mut command = std::process::Command::new(&cmd); | ^^^^ help: change this to: `cmd` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L337
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:337:24 | 337 | fs::create_dir_all(&afs::build_dir().join(&artifact_name)).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `afs::build_dir().join(&artifact_name)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L284
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:284:24 | 284 | fs::create_dir_all(&layout.dashboard_dir()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `layout.dashboard_dir()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L271
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:271:24 | 271 | fs::create_dir_all(&layout.resources_dir()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `layout.resources_dir()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L163
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:163:48 | 163 | fs::copy(lib.clone(), lib_dir.join(&lib_filename)).unwrap(); | ^^^^^^^^^^^^^ help: change this to: `lib_filename` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L136
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:136:24 | 136 | fs::create_dir_all(&layout.launcher_exe().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `layout.launcher_exe().parent().unwrap()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L135
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:135:24 | 135 | fs::create_dir_all(&layout.openvr_driver_lib().parent().unwrap()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `layout.openvr_driver_lib().parent().unwrap()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L134
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:134:24 | 134 | fs::create_dir_all(&afs::server_build_dir()).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `afs::server_build_dir()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L133
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:133:24 | 133 | fs::remove_dir_all(&afs::server_build_dir()).ok(); | ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `afs::server_build_dir()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\launcher\src\commands.rs#L62
warning: the borrowed expression implements the required traits --> alvr\launcher\src\commands.rs:62:15 | 62 | .args(&["/PID", &pid.to_string(), "/F"]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["/PID", &pid.to_string(), "/F"]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\launcher\src\commands.rs#L52
warning: the borrowed expression implements the required traits --> alvr\launcher\src\commands.rs:52:50 | 52 | spawn_no_window(Command::new("cmd").args(&["/C", "start", "steam://rungameid/250820"])); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "start", "steam://rungameid/250820"]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
this function has too many arguments (8/7): alvr\xtask\src\main.rs#L79
warning: this function has too many arguments (8/7) --> alvr\xtask\src\main.rs:79:1 | 79 | / pub fn build_server( 80 | | is_release: bool, 81 | | experiments: bool, 82 | | fetch_crates: bool, ... | 87 | | reproducible: bool, 88 | | ) { | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
the borrowed expression implements the required traits: alvr\xtask\src\main.rs#L76
warning: the borrowed expression implements the required traits --> alvr\xtask\src\main.rs:76:24 | 76 | fs::remove_dir_all(&build_dir).ok(); | ^^^^^^^^^^ help: change this to: `build_dir` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\version.rs#L177
warning: the borrowed expression implements the required traits --> alvr\xtask\src\version.rs:177:28 | 177 | .map(|d| base_dir.join(&d).to_str().unwrap().to_owned()) | ^^ help: change this to: `d` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
assigning the result of `ToOwned::to_owned()` may be inefficient: alvr\xtask\src\packaging.rs#L17
warning: assigning the result of `ToOwned::to_owned()` may be inefficient --> alvr\xtask\src\packaging.rs:17:9 | 17 | version = version[..idx].to_owned(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `version[..idx].clone_into(&mut version)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
assigning the result of `ToOwned::to_owned()` may be inefficient: alvr\xtask\src\packaging.rs#L14
warning: assigning the result of `ToOwned::to_owned()` may be inefficient --> alvr\xtask\src\packaging.rs:14:9 | 14 | version = version[..idx].to_owned(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `version[..idx].clone_into(&mut version)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones = note: `#[warn(clippy::assigning_clones)]` on by default
`filter` for `Ok` followed by `unwrap`: alvr\xtask\src\dependencies.rs#L204
warning: `filter` for `Ok` followed by `unwrap` --> alvr\xtask\src\dependencies.rs:204:18 | 204 | .filter(|result| result.is_ok()) | __________________^ 205 | | .map(|pp| pp.unwrap()) | |______________________________________^ help: consider using `flatten` instead: `flatten()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_filter_map = note: `#[warn(clippy::result_filter_map)]` on by default
the borrowed expression implements the required traits: alvr\xtask\src\dependencies.rs#L196
warning: the borrowed expression implements the required traits --> alvr\xtask\src\dependencies.rs:196:15 | 196 | .args(&["-c", &cmdline]) | ^^^^^^^^^^^^^^^^^ help: change this to: `["-c", &cmdline]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
length comparison to zero: alvr\xtask\src\dependencies.rs#L124
warning: length comparison to zero --> alvr\xtask\src\dependencies.rs:124:8 | 124 | if install_prefix.len() > 0 { | ^^^^^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!install_prefix.is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
length comparison to zero: alvr\xtask\src\dependencies.rs#L52
warning: length comparison to zero --> alvr\xtask\src\dependencies.rs:52:22 | 52 | Some(ips) if ips.len() > 0 => { | ^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!ips.is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero = note: `#[warn(clippy::len_zero)]` on by default
single-character string constant used as pattern: alvr\xtask\src\dependencies.rs#L30
warning: single-character string constant used as pattern --> alvr\xtask\src\dependencies.rs:30:83 | 30 | let ffmpeg_path = download_path.join(format!("FFmpeg-{}", version_tag.replace("/", "-"))); | ^^^ help: consider using a `char`: `'/'` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern = note: `#[warn(clippy::single_char_pattern)]` on by default
the borrowed expression implements the required traits: alvr\xtask\src\dependencies.rs#L13
warning: the borrowed expression implements the required traits --> alvr\xtask\src\dependencies.rs:13:24 | 13 | fs::create_dir_all(&destination).unwrap(); | ^^^^^^^^^^^^ help: change this to: `destination` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\dependencies.rs#L12
warning: the borrowed expression implements the required traits --> alvr\xtask\src\dependencies.rs:12:24 | 12 | fs::remove_dir_all(&destination).ok(); | ^^^^^^^^^^^^ help: change this to: `destination` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
useless use of `format!`: alvr\xtask\src\command.rs#L154
warning: useless use of `format!` --> alvr\xtask\src\command.rs:154:31 | 154 | let result = Command::new(format!("cargo")) | ^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"cargo".to_string()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format = note: `#[warn(clippy::useless_format)]` on by default
used consecutive `str::replace` call: alvr\xtask\src\command.rs#L149
warning: used consecutive `str::replace` call --> alvr\xtask\src\command.rs:149:10 | 149 | .replace('\r', "") | __________^ 150 | | .replace('\n', "") | |__________________________^ help: replace with: `replace(['\r', '\n'], "")` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_str_replace = note: `#[warn(clippy::collapsible_str_replace)]` on by default
the borrowed expression implements the required traits: alvr\xtask\src\command.rs#L141
warning: the borrowed expression implements the required traits --> alvr\xtask\src\command.rs:141:19 | 141 | .args(&["-u", "+%Y.%m.%d"]) | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-u", "+%Y.%m.%d"]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\xtask\src\command.rs#L29
warning: the borrowed expression implements the required traits --> alvr\xtask\src\command.rs:29:15 | 29 | .args(&[shell_flag, cmd]) | ^^^^^^^^^^^^^^^^^^ help: change this to: `[shell_flag, cmd]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
variable does not need to be mutable: alvr\xtask\src\main.rs#L1045
warning: variable does not need to be mutable --> alvr\xtask\src\main.rs:1045:13 | 1045 | let mut ffmpeg_version: String = | ----^^^^^^^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused import: `DictionaryDefault`: alvr\session\src\settings.rs#L4
warning: unused import: `DictionaryDefault` --> alvr\session\src\settings.rs:4:23 | 4 | use settings_schema::{DictionaryDefault, EntryData, SettingsSchema, Switch, SwitchDefault}; | ^^^^^^^^^^^^^^^^^
unused import: `alvr_common::ALVR_VERSION`: alvr\session\src\settings.rs#L1
warning: unused import: `alvr_common::ALVR_VERSION` --> alvr\session\src\settings.rs:1:5 | 1 | use alvr_common::ALVR_VERSION; | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1191
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1191:25 | 1191 | no_decoder: no_decoder, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_decoder` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1187
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1187:25 | 1187 | reproducible: reproducible, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reproducible` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1186
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1186:25 | 1186 | is_release: is_release, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `is_release` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1177
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1177:25 | 1177 | no_decoder: no_decoder, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_decoder` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1173
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1173:25 | 1173 | reproducible: reproducible, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reproducible` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1172
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1172:25 | 1172 | is_release: is_release, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `is_release` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1150
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1150:25 | 1150 | no_decoder: no_decoder, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_decoder` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1146
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1146:25 | 1146 | reproducible: reproducible, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reproducible` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1145
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1145:25 | 1145 | is_release: is_release, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `is_release` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1139
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1139:25 | 1139 | no_decoder: no_decoder, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_decoder` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1137
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1137:25 | 1137 | bundle_ffmpeg: bundle_ffmpeg, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `bundle_ffmpeg` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1136
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1136:25 | 1136 | no_nvidia: no_nvidia, | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_nvidia` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1135
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1135:25 | 1135 | reproducible: reproducible, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reproducible` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1134
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1134:25 | 1134 | is_release: is_release, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `is_release` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1122
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1122:25 | 1122 | no_decoder: no_decoder, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_decoder` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1118
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1118:25 | 1118 | reproducible: reproducible, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reproducible` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1117
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1117:25 | 1117 | is_release: is_release, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `is_release` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1111
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1111:25 | 1111 | no_decoder: no_decoder, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_decoder` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1107
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1107:25 | 1107 | reproducible: reproducible, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reproducible` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1106
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1106:25 | 1106 | is_release: is_release, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `is_release` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1098
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1098:25 | 1098 | no_decoder: no_decoder, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_decoder` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1094
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1094:25 | 1094 | reproducible: reproducible, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reproducible` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1093
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1093:25 | 1093 | is_release: is_release, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `is_release` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1085
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1085:25 | 1085 | oculus_ext: oculus_ext, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `oculus_ext` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1084
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1084:25 | 1084 | no_decoder: no_decoder, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_decoder` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1082
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1082:25 | 1082 | bundle_ffmpeg: bundle_ffmpeg, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `bundle_ffmpeg` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1081
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1081:25 | 1081 | no_nvidia: no_nvidia, | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `no_nvidia` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1080
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1080:25 | 1080 | reproducible: reproducible, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `reproducible` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
redundant field names in struct initialization: alvr\xtask\src\main.rs#L1079
warning: redundant field names in struct initialization --> alvr\xtask\src\main.rs:1079:25 | 1079 | is_release: is_release, | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `is_release` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names = note: `#[warn(clippy::redundant_field_names)]` on by default
accessing first element with `from_openvr_paths(paths_json).get(0)`: alvr\commands\src\openvrpaths.rs#L66
warning: accessing first element with `from_openvr_paths(paths_json).get(0)` --> alvr\commands\src\openvrpaths.rs:66:17 | 66 | trace_none!(from_openvr_paths(paths_json).get(0).cloned()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `from_openvr_paths(paths_json).first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first = note: `#[warn(clippy::get_first)]` on by default
unused import: `alvr_filesystem as afs`: alvr\server\build.rs#L1
warning: unused import: `alvr_filesystem as afs` --> alvr\server\build.rs:1:5 | 1 | use alvr_filesystem as afs; | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unneeded late initialization: alvr\commands\src\firewall.rs#L20
warning: unneeded late initialization --> alvr\commands\src\firewall.rs:20:5 | 20 | let exit_status; | ^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init = note: `#[warn(clippy::needless_late_init)]` on by default help: declare `exit_status` here | 22 | let exit_status = if cfg!(target_os = "linux") { | +++++++++++++++++ help: remove the assignments from the branches | 25 ~ Command::new("bash") 26 | .arg("/usr/libexec/alvr/alvr_fw_config.sh") 27 | .arg(action) 28 | .status() 29 ~ .map_err(|_| -1)? 30 | } else { ... 61 | // run with admin privileges 62 ~ runas::Command::new(script_path) 63 | .gui(true) // UAC, if available 64 | .status() 65 ~ .map_err(|_| -1)? | help: add a semicolon after the `if` expression | 66 | }; | +
useless use of `format!`: alvr\filesystem\src\lib.rs#L101
warning: useless use of `format!` --> alvr\filesystem\src\lib.rs:101:27 | 101 | let alxr_client_dir = format!("alxr_client_uwp"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"alxr_client_uwp".to_string()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format = note: `#[warn(clippy::useless_format)]` on by default
useless use of `format!`: alvr\filesystem\src\lib.rs#L101
warning: useless use of `format!` --> alvr\filesystem\src\lib.rs:101:27 | 101 | let alxr_client_dir = format!("alxr_client_uwp"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"alxr_client_uwp".to_string()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format = note: `#[warn(clippy::useless_format)]` on by default
unneeded `return` statement: alvr\filesystem\src\lib.rs#L29
warning: unneeded `return` statement --> alvr\filesystem\src\lib.rs:29:5 | 29 | return false; | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `#[warn(clippy::needless_return)]` on by default help: remove `return` | 29 - return false; 29 + false |
unneeded `return` statement: alvr\filesystem\src\lib.rs#L29
warning: unneeded `return` statement --> alvr\filesystem\src\lib.rs:29:5 | 29 | return false; | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `#[warn(clippy::needless_return)]` on by default help: remove `return` | 29 - return false; 29 + false |
the borrowed expression implements the required traits: alvr\settings-schema-derive\src\lib.rs#L406
warning: the borrowed expression implements the required traits --> alvr\settings-schema-derive\src\lib.rs:406:40 | 406 | _ => error("Unsupported type", &ty), | ^^^ help: change this to: `ty` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\settings-schema-derive\src\lib.rs#L403
warning: the borrowed expression implements the required traits --> alvr\settings-schema-derive\src\lib.rs:403:78 | 403 | error("Generics are supported only for Option, Switch, Vec", &ty) | ^^^ help: change this to: `ty` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
deref which would be done by auto-deref: alvr\settings-schema-derive\src\lib.rs#L276
warning: deref which would be done by auto-deref --> alvr\settings-schema-derive\src\lib.rs:276:29 | 276 | } = type_schema(&*ty_array.elem, schema_attrs)?; | ^^^^^^^^^^^^^^^ help: try: `&ty_array.elem` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref = note: `#[warn(clippy::explicit_auto_deref)]` on by default
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, ErichDonGubler/clippy-check@fix-windows-lf-breaking-reports. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, Swatinem/rust-cache@v1, ErichDonGubler/clippy-check@fix-windows-lf-breaking-reports. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
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
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
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
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
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
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
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
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/
build_alxr_android
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build_alxr_android
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build_alxr_android
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/
build_alxr_android
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/
build_alxr_android
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/
build_alxr_android
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/
build_alxr_uwp_arm64
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build_alxr_uwp_arm64
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build_alxr_uwp_arm64
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/
build_alxr_uwp_arm64
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/
build_alxr_uwp_arm64
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/
build_alxr_uwp_arm64
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/
build_alxr_win_x64
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1, actions/cache@v2, Jimver/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build_alxr_win_x64
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build_alxr_win_x64
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/
build_alxr_win_x64
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/
build_alxr_win_x64
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/
build_alxr_win_x64
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/
build_alxr_win_x64
Error during installation: Error: The process 'D:\a\ALVR\ALVR\cuda_installer-windows-10.0.20348-12.3.2\cuda_installer-windows-10.0.20348_12.3.2.exe' failed with exit code 2147944003