Skip to content

add tests for init/apply_dist/ci

Sign in for the full log view
GitHub Actions / clippy failed Feb 5, 2025 in 1s

clippy

91 errors

Details

Results

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

Versions

  • rustc 1.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

Annotations

Check failure on line 190 in cargo-dist/src/init/apply_dist/ci.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

returning the result of a `let` binding from a block

error: returning the result of a `let` binding from a block
   --> cargo-dist/src/init/apply_dist/ci.rs:190:9
    |
189 |         let doc = src.deserialize_toml_edit().into_diagnostic().unwrap();
    |         ----------------------------------------------------------------- unnecessary `let` binding
190 |         doc
    |         ^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
    = note: `-D clippy::let-and-return` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::let_and_return)]`
help: return the expression directly
    |
189 ~         
190 ~         src.deserialize_toml_edit().into_diagnostic().unwrap()
    |

Check failure on line 6 in cargo-dist/src/init/apply_dist/system_dependencies.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply` is never used

error: function `apply` is never used
 --> cargo-dist/src/init/apply_dist/system_dependencies.rs:6:8
  |
6 | pub fn apply(
  |        ^^^^^

Check failure on line 6 in cargo-dist/src/init/apply_dist/publishers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply` is never used

error: function `apply` is never used
 --> cargo-dist/src/init/apply_dist/publishers.rs:6:8
  |
6 | pub fn apply(table: &mut toml_edit::Table, publishers: &Option<PublisherLayer>) {
  |        ^^^^^

Check failure on line 278 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_installers_pkg` is never used

error: function `apply_installers_pkg` is never used
   --> cargo-dist/src/init/apply_dist/installers.rs:278:4
    |
278 | fn apply_installers_pkg(installers_table: &mut toml_edit::Table, pkg: &PkgInstallerLayer) {
    |    ^^^^^^^^^^^^^^^^^^^^

Check failure on line 262 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_installers_shell` is never used

error: function `apply_installers_shell` is never used
   --> cargo-dist/src/init/apply_dist/installers.rs:262:4
    |
262 | fn apply_installers_shell(installers_table: &mut toml_edit::Table, shell: &ShellInstallerLayer) {
    |    ^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 243 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_installers_powershell` is never used

error: function `apply_installers_powershell` is never used
   --> cargo-dist/src/init/apply_dist/installers.rs:243:4
    |
243 | fn apply_installers_powershell(
    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 218 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_installers_npm` is never used

error: function `apply_installers_npm` is never used
   --> cargo-dist/src/init/apply_dist/installers.rs:218:4
    |
218 | fn apply_installers_npm(installers_table: &mut toml_edit::Table, npm: &NpmInstallerLayer) {
    |    ^^^^^^^^^^^^^^^^^^^^

Check failure on line 201 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_installers_msi` is never used

error: function `apply_installers_msi` is never used
   --> cargo-dist/src/init/apply_dist/installers.rs:201:4
    |
201 | fn apply_installers_msi(installers_table: &mut toml_edit::Table, msi: &MsiInstallerLayer) {
    |    ^^^^^^^^^^^^^^^^^^^^

Check failure on line 168 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_installers_homebrew` is never used

error: function `apply_installers_homebrew` is never used
   --> cargo-dist/src/init/apply_dist/installers.rs:168:4
    |
168 | fn apply_installers_homebrew(
    |    ^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 142 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_installers_common` is never used

error: function `apply_installers_common` is never used
   --> cargo-dist/src/init/apply_dist/installers.rs:142:4
    |
142 | fn apply_installers_common(table: &mut toml_edit::Table, common: &CommonInstallerLayer) {
    |    ^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 11 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply` is never used

error: function `apply` is never used
  --> cargo-dist/src/init/apply_dist/installers.rs:11:8
   |
11 | pub fn apply(table: &mut toml_edit::Table, installers: &Option<InstallerLayer>) {
   |        ^^^^^

Check failure on line 6 in cargo-dist/src/init/apply_dist/hosts.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply` is never used

error: function `apply` is never used
 --> cargo-dist/src/init/apply_dist/hosts.rs:6:8
  |
6 | pub fn apply(table: &mut toml_edit::Table, hosts: &Option<HostLayer>) {
  |        ^^^^^

Check failure on line 66 in cargo-dist/src/init/apply_dist/helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_optional_min_glibc_version` is never used

error: function `apply_optional_min_glibc_version` is never used
  --> cargo-dist/src/init/apply_dist/helpers.rs:66:8
   |
66 | pub fn apply_optional_min_glibc_version(
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 48 in cargo-dist/src/init/apply_dist/helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_string_or_list` is never used

error: function `apply_string_or_list` is never used
  --> cargo-dist/src/init/apply_dist/helpers.rs:48:8
   |
48 | pub fn apply_string_or_list<I>(table: &mut toml_edit::Table, key: &str, desc: &str, list: Option<I>)
   |        ^^^^^^^^^^^^^^^^^^^^

Check failure on line 60 in cargo-dist/src/init/apply_dist/builds.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_cargo_builds` is never used

error: function `apply_cargo_builds` is never used
  --> cargo-dist/src/init/apply_dist/builds.rs:60:4
   |
60 | fn apply_cargo_builds(builds_table: &mut toml_edit::Table, builds: &BuildLayer) {
   |    ^^^^^^^^^^^^^^^^^^

Check failure on line 7 in cargo-dist/src/init/apply_dist/builds.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply` is never used

error: function `apply` is never used
 --> cargo-dist/src/init/apply_dist/builds.rs:7:8
  |
7 | pub fn apply(table: &mut toml_edit::Table, builds: &Option<BuildLayer>) {
  |        ^^^^^

Check failure on line 52 in cargo-dist/src/init/apply_dist/artifacts.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_artifacts_archives` is never used

error: function `apply_artifacts_archives` is never used
  --> cargo-dist/src/init/apply_dist/artifacts.rs:52:4
   |
52 | fn apply_artifacts_archives(
   |    ^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 7 in cargo-dist/src/init/apply_dist/artifacts.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply` is never used

error: function `apply` is never used
 --> cargo-dist/src/init/apply_dist/artifacts.rs:7:8
  |
7 | pub fn apply(table: &mut toml_edit::Table, artifacts: &Option<ArtifactLayer>) {
  |        ^^^^^

Check failure on line 236 in cargo-dist/src/init/apply_dist/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_default_install_path` is never used

error: function `apply_default_install_path` is never used
   --> cargo-dist/src/init/apply_dist/mod.rs:236:4
    |
236 | fn apply_default_install_path(installers: &Option<InstallerLayer>) -> InstallerLayer {
    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 26 in cargo-dist/src/init/apply_dist/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_dist_to_metadata` is never used

error: function `apply_dist_to_metadata` is never used
  --> cargo-dist/src/init/apply_dist/mod.rs:26:8
   |
26 | pub fn apply_dist_to_metadata(metadata: &mut toml_edit::Item, meta: &TomlLayer) {
   |        ^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 20 in cargo-dist/src/init/apply_dist/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_dist_to_workspace_toml` is never used

error: function `apply_dist_to_workspace_toml` is never used
  --> cargo-dist/src/init/apply_dist/mod.rs:20:8
   |
20 | pub fn apply_dist_to_workspace_toml(workspace_toml: &mut toml_edit::DocumentMut, meta: &TomlLayer) {
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D dead-code` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(dead_code)]`

Check failure on line 6 in cargo-dist/src/init/apply_dist/system_dependencies.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply` is never used

error: function `apply` is never used
 --> cargo-dist/src/init/apply_dist/system_dependencies.rs:6:8
  |
6 | pub fn apply(
  |        ^^^^^

Check failure on line 6 in cargo-dist/src/init/apply_dist/publishers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply` is never used

error: function `apply` is never used
 --> cargo-dist/src/init/apply_dist/publishers.rs:6:8
  |
6 | pub fn apply(table: &mut toml_edit::Table, publishers: &Option<PublisherLayer>) {
  |        ^^^^^

Check failure on line 278 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_installers_pkg` is never used

error: function `apply_installers_pkg` is never used
   --> cargo-dist/src/init/apply_dist/installers.rs:278:4
    |
278 | fn apply_installers_pkg(installers_table: &mut toml_edit::Table, pkg: &PkgInstallerLayer) {
    |    ^^^^^^^^^^^^^^^^^^^^

Check failure on line 262 in cargo-dist/src/init/apply_dist/installers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `apply_installers_shell` is never used

error: function `apply_installers_shell` is never used
   --> cargo-dist/src/init/apply_dist/installers.rs:262:4
    |
262 | fn apply_installers_shell(installers_table: &mut toml_edit::Table, shell: &ShellInstallerLayer) {
    |    ^^^^^^^^^^^^^^^^^^^^^^