(WIP) add v1 "dist init" #7696
web.yml
on: pull_request
Build and deploy site and docs
22s
Annotations
28 errors
variable does not need to be mutable:
cargo-dist/src/init/mod.rs#L68
error: variable does not need to be mutable
--> cargo-dist/src/init/mod.rs:68:9
|
68 | let mut packages: SortedMap<String, TomlLayer> = SortedMap::new();
| ----^^^^^^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
cargo-dist/src/init/mod.rs#L67
error: variable does not need to be mutable
--> cargo-dist/src/init/mod.rs:67:9
|
67 | let mut workspace = meta;
| ----^^^^^^^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
cargo-dist/src/init/mod.rs#L48
error: variable does not need to be mutable
--> cargo-dist/src/init/mod.rs:48:9
|
48 | let mut did_add_profile = false;
| ----^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
|
unused variable: `workspace`:
cargo-dist/src/init/mod.rs#L50
error: unused variable: `workspace`
--> cargo-dist/src/init/mod.rs:50:13
|
50 | let workspace = workspaces.workspace(workspace_idx);
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_workspace`
|
variable does not need to be mutable:
cargo-dist/src/init/interactive.rs#L23
error: variable does not need to be mutable
--> cargo-dist/src/init/interactive.rs:23:9
|
23 | let mut meta = if has_config {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_mut)]`
|
unused variable: `args`:
cargo-dist/src/init/interactive.rs#L17
error: unused variable: `args`
--> cargo-dist/src/init/interactive.rs:17:5
|
17 | args: &InitArgs,
| ^^^^ help: if this is intentional, prefix it with an underscore: `_args`
|
unused variable: `cfg`:
cargo-dist/src/init/interactive.rs#L16
error: unused variable: `cfg`
--> cargo-dist/src/init/interactive.rs:16:5
|
16 | cfg: &Config,
| ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
|
unused variable: `publishers`:
cargo-dist/src/init/apply_dist.rs#L899
error: unused variable: `publishers`
--> cargo-dist/src/init/apply_dist.rs:899:51
|
899 | fn apply_publishers(table: &mut toml_edit::Table, publishers: &Option<PublisherLayer>) {
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_publishers`
|
unused variable: `hosts`:
cargo-dist/src/init/apply_dist.rs#L591
error: unused variable: `hosts`
--> cargo-dist/src/init/apply_dist.rs:591:46
|
591 | fn apply_hosts(table: &mut toml_edit::Table, hosts: &Option<HostLayer>) {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_hosts`
|
unused variable: `ci`:
cargo-dist/src/init/apply_dist.rs#L574
error: unused variable: `ci`
--> cargo-dist/src/init/apply_dist.rs:574:43
|
574 | fn apply_ci(table: &mut toml_edit::Table, ci: &Option<CiLayer>) {
| ^^ help: if this is intentional, prefix it with an underscore: `_ci`
|
unused variable: `builds_table`:
cargo-dist/src/init/apply_dist.rs#L563
error: unused variable: `builds_table`
--> cargo-dist/src/init/apply_dist.rs:563:5
|
563 | builds_table: &mut toml_edit::Table,
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builds_table`
|
unused variable: `system_dependencies`:
cargo-dist/src/init/apply_dist.rs#L566
error: unused variable: `system_dependencies`
--> cargo-dist/src/init/apply_dist.rs:566:14
|
566 | let Some(system_dependencies) = system_dependencies else {
| ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_system_dependencies`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
|
variable does not need to be mutable:
cargo-dist/src/init/mod.rs#L68
error: variable does not need to be mutable
--> cargo-dist/src/init/mod.rs:68:9
|
68 | let mut packages: SortedMap<String, TomlLayer> = SortedMap::new();
| ----^^^^^^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
cargo-dist/src/init/mod.rs#L67
error: variable does not need to be mutable
--> cargo-dist/src/init/mod.rs:67:9
|
67 | let mut workspace = meta;
| ----^^^^^^^^^
| |
| help: remove this `mut`
|
variable does not need to be mutable:
cargo-dist/src/init/mod.rs#L48
error: variable does not need to be mutable
--> cargo-dist/src/init/mod.rs:48:9
|
48 | let mut did_add_profile = false;
| ----^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
|
unused variable: `workspace`:
cargo-dist/src/init/mod.rs#L50
error: unused variable: `workspace`
--> cargo-dist/src/init/mod.rs:50:13
|
50 | let workspace = workspaces.workspace(workspace_idx);
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_workspace`
|
variable does not need to be mutable:
cargo-dist/src/init/interactive.rs#L23
error: variable does not need to be mutable
--> cargo-dist/src/init/interactive.rs:23:9
|
23 | let mut meta = if has_config {
| ----^^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_mut)]`
|
unused variable: `args`:
cargo-dist/src/init/interactive.rs#L17
error: unused variable: `args`
--> cargo-dist/src/init/interactive.rs:17:5
|
17 | args: &InitArgs,
| ^^^^ help: if this is intentional, prefix it with an underscore: `_args`
|
unused variable: `cfg`:
cargo-dist/src/init/interactive.rs#L16
error: unused variable: `cfg`
--> cargo-dist/src/init/interactive.rs:16:5
|
16 | cfg: &Config,
| ^^^ help: if this is intentional, prefix it with an underscore: `_cfg`
|
unused variable: `publishers`:
cargo-dist/src/init/apply_dist.rs#L899
error: unused variable: `publishers`
--> cargo-dist/src/init/apply_dist.rs:899:51
|
899 | fn apply_publishers(table: &mut toml_edit::Table, publishers: &Option<PublisherLayer>) {
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_publishers`
|
unused variable: `hosts`:
cargo-dist/src/init/apply_dist.rs#L591
error: unused variable: `hosts`
--> cargo-dist/src/init/apply_dist.rs:591:46
|
591 | fn apply_hosts(table: &mut toml_edit::Table, hosts: &Option<HostLayer>) {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_hosts`
|
unused variable: `ci`:
cargo-dist/src/init/apply_dist.rs#L574
error: unused variable: `ci`
--> cargo-dist/src/init/apply_dist.rs:574:43
|
574 | fn apply_ci(table: &mut toml_edit::Table, ci: &Option<CiLayer>) {
| ^^ help: if this is intentional, prefix it with an underscore: `_ci`
|
unused variable: `builds_table`:
cargo-dist/src/init/apply_dist.rs#L563
error: unused variable: `builds_table`
--> cargo-dist/src/init/apply_dist.rs:563:5
|
563 | builds_table: &mut toml_edit::Table,
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_builds_table`
|
unused variable: `system_dependencies`:
cargo-dist/src/init/apply_dist.rs#L566
error: unused variable: `system_dependencies`
--> cargo-dist/src/init/apply_dist.rs:566:14
|
566 | let Some(system_dependencies) = system_dependencies else {
| ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_system_dependencies`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
|
unused import: `super::console_helpers`:
cargo-dist/src/init/interactive.rs#L11
error: unused import: `super::console_helpers`
--> cargo-dist/src/init/interactive.rs:11:5
|
11 | use super::console_helpers;
| ^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `DistError`:
cargo-dist/src/init/interactive.rs#L6
error: unused import: `DistError`
--> cargo-dist/src/init/interactive.rs:6:21
|
6 | use crate::errors::{DistError, DistResult};
| ^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
|
unused import: `super::console_helpers`:
cargo-dist/src/init/interactive.rs#L11
error: unused import: `super::console_helpers`
--> cargo-dist/src/init/interactive.rs:11:5
|
11 | use super::console_helpers;
| ^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `DistError`:
cargo-dist/src/init/interactive.rs#L6
error: unused import: `DistError`
--> cargo-dist/src/init/interactive.rs:6:21
|
6 | use crate::errors::{DistError, DistResult};
| ^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
|