Skip to content

support: put installed VCC runtime version in support package #648

support: put installed VCC runtime version in support package

support: put installed VCC runtime version in support package #648

Triggered via pull request October 3, 2024 22:27
Status Success
Total duration 36s
Artifacts

test.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 8 warnings
mismatched types: src/util/os.rs#L16
error[E0308]: mismatched types --> src/util/os.rs:16:39 | 16 | pub fn get_installed_vcc_runtime() -> Option<semver::Version> { | ------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<Version>`, found `()` | | | implicitly returns `()` as its body has no tail or `return` expression 17 | None; | - help: remove this semicolon to return this value | = note: expected enum `std::option::Option<semver::Version>` found unit type `()`
variable does not need to be mutable: src/commands/features/mods.rs#L712
warning: variable does not need to be mutable --> src/commands/features/mods.rs:712:7 | 712 | let mut child = command.spawn()?; | ----^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `child`: src/commands/features/mods.rs#L712
warning: unused variable: `child` --> src/commands/features/mods.rs:712:11 | 712 | let mut child = command.spawn()?; | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` | = note: `#[warn(unused_variables)]` on by default
value assigned to `process_status` is never read: src/util/process.rs#L58
warning: value assigned to `process_status` is never read --> src/util/process.rs:58:11 | 58 | let mut process_status = None; | ^^^^^^^^^^^^^^ | = help: maybe it is overwritten before being read? = note: `#[warn(unused_assignments)]` on by default
unused import: `BufRead`: src/util/file.rs#L9
warning: unused import: `BufRead` --> src/util/file.rs:9:8 | 9 | io::{BufRead, Read}, | ^^^^^^^
unused import: `FromBase64`: src/util/file.rs#L5
warning: unused import: `FromBase64` --> src/util/file.rs:5:31 | 5 | use rustc_serialize::base64::{FromBase64, ToBase64, MIME}; | ^^^^^^^^^^
unused import: `tauri::Manager`: src/commands/util.rs#L2
warning: unused import: `tauri::Manager` --> src/commands/util.rs:2:5 | 2 | use tauri::Manager; | ^^^^^^^^^^^^^^
unused import: `crate::util::os::get_installed_vcc_runtime`: src/commands/config.rs#L3
warning: unused import: `crate::util::os::get_installed_vcc_runtime` --> src/commands/config.rs:3:5 | 3 | use crate::util::os::get_installed_vcc_runtime; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
redundant field names in struct initialization: src/commands/binaries.rs#L84
warning: redundant field names in struct initialization --> src/commands/binaries.rs:84:5 | 84 | tooling_version: tooling_version, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `tooling_version` | = 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