Skip to content

Finish apply_dist() #7790

Finish apply_dist()

Finish apply_dist() #7790

Triggered via pull request February 13, 2025 22:51
Status Success
Total duration 36s
Artifacts

web.yml

on: pull_request
Build and deploy site and docs
26s
Build and deploy site and docs
Fit to window
Zoom out
Zoom in

Annotations

68 errors
function `apply_default_install_path` is never used: cargo-dist/src/init/apply_dist/mod.rs#L107
error: function `apply_default_install_path` is never used --> cargo-dist/src/init/apply_dist/mod.rs:107:4 | 107 | fn apply_default_install_path(installers: &Option<InstallerLayer>) -> InstallerLayer { | ^^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_dist_to_metadata` is never used: cargo-dist/src/init/apply_dist/mod.rs#L25
error: function `apply_dist_to_metadata` is never used --> cargo-dist/src/init/apply_dist/mod.rs:25:8 | 25 | pub fn apply_dist_to_metadata(metadata: &mut toml_edit::Item, meta: &TomlLayer) { | ^^^^^^^^^^^^^^^^^^^^^^
function `apply_dist_to_workspace_toml` is never used: cargo-dist/src/init/apply_dist/mod.rs#L19
error: function `apply_dist_to_workspace_toml` is never used --> cargo-dist/src/init/apply_dist/mod.rs:19:8 | 19 | 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)]`
function `apply_npm` is never used: cargo-dist/src/init/apply_dist/publishers.rs#L68
error: function `apply_npm` is never used --> cargo-dist/src/init/apply_dist/publishers.rs:68:4 | 68 | fn apply_npm(publishers_table: &mut toml_edit::Table, publishers: &PublisherLayer) { | ^^^^^^^^^
function `apply_homebrew` is never used: cargo-dist/src/init/apply_dist/publishers.rs#L37
error: function `apply_homebrew` is never used --> cargo-dist/src/init/apply_dist/publishers.rs:37:4 | 37 | fn apply_homebrew(publishers_table: &mut toml_edit::Table, publishers: &PublisherLayer) { | ^^^^^^^^^^^^^^
function `apply_common` is never used: cargo-dist/src/init/apply_dist/publishers.rs#L28
error: function `apply_common` is never used --> cargo-dist/src/init/apply_dist/publishers.rs:28:4 | 28 | fn apply_common(table: &mut toml_edit::Table, common: &CommonPublisherLayer) { | ^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/publishers.rs#L6
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>) { | ^^^^^
function `apply_installers_pkg` is never used: cargo-dist/src/init/apply_dist/installers.rs#L281
error: function `apply_installers_pkg` is never used --> cargo-dist/src/init/apply_dist/installers.rs:281:4 | 281 | fn apply_installers_pkg(installers_table: &mut toml_edit::Table, pkg: &PkgInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^
function `apply_installers_shell` is never used: cargo-dist/src/init/apply_dist/installers.rs#L266
error: function `apply_installers_shell` is never used --> cargo-dist/src/init/apply_dist/installers.rs:266:4 | 266 | fn apply_installers_shell(installers_table: &mut toml_edit::Table, shell: &ShellInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^^^
function `apply_installers_powershell` is never used: cargo-dist/src/init/apply_dist/installers.rs#L248
error: function `apply_installers_powershell` is never used --> cargo-dist/src/init/apply_dist/installers.rs:248:4 | 248 | fn apply_installers_powershell( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_installers_npm` is never used: cargo-dist/src/init/apply_dist/installers.rs#L220
error: function `apply_installers_npm` is never used --> cargo-dist/src/init/apply_dist/installers.rs:220:4 | 220 | fn apply_installers_npm(installers_table: &mut toml_edit::Table, npm: &NpmInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^
function `apply_installers_msi` is never used: cargo-dist/src/init/apply_dist/installers.rs#L204
error: function `apply_installers_msi` is never used --> cargo-dist/src/init/apply_dist/installers.rs:204:4 | 204 | fn apply_installers_msi(installers_table: &mut toml_edit::Table, msi: &MsiInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^
function `apply_installers_homebrew` is never used: cargo-dist/src/init/apply_dist/installers.rs#L172
error: function `apply_installers_homebrew` is never used --> cargo-dist/src/init/apply_dist/installers.rs:172:4 | 172 | fn apply_installers_homebrew( | ^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_installers_common` is never used: cargo-dist/src/init/apply_dist/installers.rs#L141
error: function `apply_installers_common` is never used --> cargo-dist/src/init/apply_dist/installers.rs:141:4 | 141 | fn apply_installers_common(table: &mut toml_edit::Table, common: &CommonInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/installers.rs#L11
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>) { | ^^^^^
function `apply_axodotdev` is never used: cargo-dist/src/init/apply_dist/hosts.rs#L112
error: function `apply_axodotdev` is never used --> cargo-dist/src/init/apply_dist/hosts.rs:112:4 | 112 | fn apply_axodotdev(hosts_table: &mut toml_edit::Table, hosts: &HostLayer) { | ^^^^^^^^^^^^^^^
function `apply_github` is never used: cargo-dist/src/init/apply_dist/hosts.rs#L50
error: function `apply_github` is never used --> cargo-dist/src/init/apply_dist/hosts.rs:50:4 | 50 | fn apply_github(hosts_table: &mut toml_edit::Table, hosts: &HostLayer) { | ^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/hosts.rs#L6
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>) { | ^^^^^
function `apply_optional_min_glibc_version` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L85
error: function `apply_optional_min_glibc_version` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:85:8 | 85 | pub fn apply_optional_min_glibc_version( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_string_or_list` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L67
error: function `apply_string_or_list` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:67:8 | 67 | pub fn apply_string_or_list<I>(table: &mut toml_edit::Table, key: &str, desc: &str, list: Option<I>) | ^^^^^^^^^^^^^^^^^^^^
function `apply_string_list` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L46
error: function `apply_string_list` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:46:8 | 46 | pub fn apply_string_list<I>(table: &mut toml_edit::Table, key: &str, desc: &str, list: Option<I>) | ^^^^^^^^^^^^^^^^^
function `apply_optional_value` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L31
error: function `apply_optional_value` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:31:8 | 31 | pub fn apply_optional_value<I>(table: &mut toml_edit::Table, key: &str, desc: &str, val: Option<I>) | ^^^^^^^^^^^^^^^^^^^^
function `skip_string_list` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L14
error: function `skip_string_list` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:14:8 | 14 | pub fn skip_string_list<I>( | ^^^^^^^^^^^^^^^^
function `skip_optional_value` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L5
error: function `skip_optional_value` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:5:8 | 5 | pub fn skip_optional_value<I>( | ^^^^^^^^^^^^^^^^^^^
function `apply_ci_common` is never used: cargo-dist/src/init/apply_dist/ci.rs#L81
error: function `apply_ci_common` is never used --> cargo-dist/src/init/apply_dist/ci.rs:81:4 | 81 | fn apply_ci_common(table: &mut toml_edit::Table, common: &CommonCiLayer) { | ^^^^^^^^^^^^^^^
function `apply_ci_github` is never used: cargo-dist/src/init/apply_dist/ci.rs#L42
error: function `apply_ci_github` is never used --> cargo-dist/src/init/apply_dist/ci.rs:42:4 | 42 | fn apply_ci_github(ci_table: &mut toml_edit::Table, github: &GithubCiLayer) { | ^^^^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/ci.rs#L7
error: function `apply` is never used --> cargo-dist/src/init/apply_dist/ci.rs:7:8 | 7 | pub fn apply(table: &mut toml_edit::Table, ci: &Option<CiLayer>) { | ^^^^^
function `apply_cargo_builds` is never used: cargo-dist/src/init/apply_dist/builds.rs#L66
error: function `apply_cargo_builds` is never used --> cargo-dist/src/init/apply_dist/builds.rs:66:4 | 66 | fn apply_cargo_builds(builds_table: &mut toml_edit::Table, builds: &BuildLayer) { | ^^^^^^^^^^^^^^^^^^
function `apply_system_dependencies` is never used: cargo-dist/src/init/apply_dist/builds.rs#L59
error: function `apply_system_dependencies` is never used --> cargo-dist/src/init/apply_dist/builds.rs:59:8 | 59 | pub fn apply_system_dependencies( | ^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/builds.rs#L7
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>) { | ^^^^^
function `apply_artifacts_archives` is never used: cargo-dist/src/init/apply_dist/artifacts.rs#L46
error: function `apply_artifacts_archives` is never used --> cargo-dist/src/init/apply_dist/artifacts.rs:46:4 | 46 | fn apply_artifacts_archives( | ^^^^^^^^^^^^^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/artifacts.rs#L6
error: function `apply` is never used --> cargo-dist/src/init/apply_dist/artifacts.rs:6:8 | 6 | pub fn apply(table: &mut toml_edit::Table, artifacts: &Option<ArtifactLayer>) { | ^^^^^
function `apply_default_install_path` is never used: cargo-dist/src/init/apply_dist/mod.rs#L107
error: function `apply_default_install_path` is never used --> cargo-dist/src/init/apply_dist/mod.rs:107:4 | 107 | fn apply_default_install_path(installers: &Option<InstallerLayer>) -> InstallerLayer { | ^^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_default_install_path` is never used: cargo-dist/src/init/apply_dist/mod.rs#L107
error: function `apply_default_install_path` is never used --> cargo-dist/src/init/apply_dist/mod.rs:107:4 | 107 | fn apply_default_install_path(installers: &Option<InstallerLayer>) -> InstallerLayer { | ^^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_dist_to_metadata` is never used: cargo-dist/src/init/apply_dist/mod.rs#L25
error: function `apply_dist_to_metadata` is never used --> cargo-dist/src/init/apply_dist/mod.rs:25:8 | 25 | pub fn apply_dist_to_metadata(metadata: &mut toml_edit::Item, meta: &TomlLayer) { | ^^^^^^^^^^^^^^^^^^^^^^
function `apply_dist_to_workspace_toml` is never used: cargo-dist/src/init/apply_dist/mod.rs#L19
error: function `apply_dist_to_workspace_toml` is never used --> cargo-dist/src/init/apply_dist/mod.rs:19:8 | 19 | 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)]`
function `apply_npm` is never used: cargo-dist/src/init/apply_dist/publishers.rs#L68
error: function `apply_npm` is never used --> cargo-dist/src/init/apply_dist/publishers.rs:68:4 | 68 | fn apply_npm(publishers_table: &mut toml_edit::Table, publishers: &PublisherLayer) { | ^^^^^^^^^
function `apply_homebrew` is never used: cargo-dist/src/init/apply_dist/publishers.rs#L37
error: function `apply_homebrew` is never used --> cargo-dist/src/init/apply_dist/publishers.rs:37:4 | 37 | fn apply_homebrew(publishers_table: &mut toml_edit::Table, publishers: &PublisherLayer) { | ^^^^^^^^^^^^^^
function `apply_common` is never used: cargo-dist/src/init/apply_dist/publishers.rs#L28
error: function `apply_common` is never used --> cargo-dist/src/init/apply_dist/publishers.rs:28:4 | 28 | fn apply_common(table: &mut toml_edit::Table, common: &CommonPublisherLayer) { | ^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/publishers.rs#L6
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>) { | ^^^^^
function `apply_installers_pkg` is never used: cargo-dist/src/init/apply_dist/installers.rs#L281
error: function `apply_installers_pkg` is never used --> cargo-dist/src/init/apply_dist/installers.rs:281:4 | 281 | fn apply_installers_pkg(installers_table: &mut toml_edit::Table, pkg: &PkgInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^
function `apply_installers_shell` is never used: cargo-dist/src/init/apply_dist/installers.rs#L266
error: function `apply_installers_shell` is never used --> cargo-dist/src/init/apply_dist/installers.rs:266:4 | 266 | fn apply_installers_shell(installers_table: &mut toml_edit::Table, shell: &ShellInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^^^
function `apply_installers_powershell` is never used: cargo-dist/src/init/apply_dist/installers.rs#L248
error: function `apply_installers_powershell` is never used --> cargo-dist/src/init/apply_dist/installers.rs:248:4 | 248 | fn apply_installers_powershell( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_installers_npm` is never used: cargo-dist/src/init/apply_dist/installers.rs#L220
error: function `apply_installers_npm` is never used --> cargo-dist/src/init/apply_dist/installers.rs:220:4 | 220 | fn apply_installers_npm(installers_table: &mut toml_edit::Table, npm: &NpmInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^
function `apply_installers_msi` is never used: cargo-dist/src/init/apply_dist/installers.rs#L204
error: function `apply_installers_msi` is never used --> cargo-dist/src/init/apply_dist/installers.rs:204:4 | 204 | fn apply_installers_msi(installers_table: &mut toml_edit::Table, msi: &MsiInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^
function `apply_installers_homebrew` is never used: cargo-dist/src/init/apply_dist/installers.rs#L172
error: function `apply_installers_homebrew` is never used --> cargo-dist/src/init/apply_dist/installers.rs:172:4 | 172 | fn apply_installers_homebrew( | ^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_installers_common` is never used: cargo-dist/src/init/apply_dist/installers.rs#L141
error: function `apply_installers_common` is never used --> cargo-dist/src/init/apply_dist/installers.rs:141:4 | 141 | fn apply_installers_common(table: &mut toml_edit::Table, common: &CommonInstallerLayer) { | ^^^^^^^^^^^^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/installers.rs#L11
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>) { | ^^^^^
function `apply_axodotdev` is never used: cargo-dist/src/init/apply_dist/hosts.rs#L112
error: function `apply_axodotdev` is never used --> cargo-dist/src/init/apply_dist/hosts.rs:112:4 | 112 | fn apply_axodotdev(hosts_table: &mut toml_edit::Table, hosts: &HostLayer) { | ^^^^^^^^^^^^^^^
function `apply_github` is never used: cargo-dist/src/init/apply_dist/hosts.rs#L50
error: function `apply_github` is never used --> cargo-dist/src/init/apply_dist/hosts.rs:50:4 | 50 | fn apply_github(hosts_table: &mut toml_edit::Table, hosts: &HostLayer) { | ^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/hosts.rs#L6
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>) { | ^^^^^
function `apply_optional_min_glibc_version` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L85
error: function `apply_optional_min_glibc_version` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:85:8 | 85 | pub fn apply_optional_min_glibc_version( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_string_or_list` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L67
error: function `apply_string_or_list` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:67:8 | 67 | pub fn apply_string_or_list<I>(table: &mut toml_edit::Table, key: &str, desc: &str, list: Option<I>) | ^^^^^^^^^^^^^^^^^^^^
function `apply_string_list` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L46
error: function `apply_string_list` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:46:8 | 46 | pub fn apply_string_list<I>(table: &mut toml_edit::Table, key: &str, desc: &str, list: Option<I>) | ^^^^^^^^^^^^^^^^^
function `apply_optional_value` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L31
error: function `apply_optional_value` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:31:8 | 31 | pub fn apply_optional_value<I>(table: &mut toml_edit::Table, key: &str, desc: &str, val: Option<I>) | ^^^^^^^^^^^^^^^^^^^^
function `skip_string_list` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L14
error: function `skip_string_list` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:14:8 | 14 | pub fn skip_string_list<I>( | ^^^^^^^^^^^^^^^^
function `skip_optional_value` is never used: cargo-dist/src/init/apply_dist/helpers.rs#L5
error: function `skip_optional_value` is never used --> cargo-dist/src/init/apply_dist/helpers.rs:5:8 | 5 | pub fn skip_optional_value<I>( | ^^^^^^^^^^^^^^^^^^^
function `apply_ci_common` is never used: cargo-dist/src/init/apply_dist/ci.rs#L81
error: function `apply_ci_common` is never used --> cargo-dist/src/init/apply_dist/ci.rs:81:4 | 81 | fn apply_ci_common(table: &mut toml_edit::Table, common: &CommonCiLayer) { | ^^^^^^^^^^^^^^^
function `apply_ci_github` is never used: cargo-dist/src/init/apply_dist/ci.rs#L42
error: function `apply_ci_github` is never used --> cargo-dist/src/init/apply_dist/ci.rs:42:4 | 42 | fn apply_ci_github(ci_table: &mut toml_edit::Table, github: &GithubCiLayer) { | ^^^^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/ci.rs#L7
error: function `apply` is never used --> cargo-dist/src/init/apply_dist/ci.rs:7:8 | 7 | pub fn apply(table: &mut toml_edit::Table, ci: &Option<CiLayer>) { | ^^^^^
function `apply_cargo_builds` is never used: cargo-dist/src/init/apply_dist/builds.rs#L66
error: function `apply_cargo_builds` is never used --> cargo-dist/src/init/apply_dist/builds.rs:66:4 | 66 | fn apply_cargo_builds(builds_table: &mut toml_edit::Table, builds: &BuildLayer) { | ^^^^^^^^^^^^^^^^^^
function `apply_system_dependencies` is never used: cargo-dist/src/init/apply_dist/builds.rs#L59
error: function `apply_system_dependencies` is never used --> cargo-dist/src/init/apply_dist/builds.rs:59:8 | 59 | pub fn apply_system_dependencies( | ^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/builds.rs#L7
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>) { | ^^^^^
function `apply_artifacts_archives` is never used: cargo-dist/src/init/apply_dist/artifacts.rs#L46
error: function `apply_artifacts_archives` is never used --> cargo-dist/src/init/apply_dist/artifacts.rs:46:4 | 46 | fn apply_artifacts_archives( | ^^^^^^^^^^^^^^^^^^^^^^^^
function `apply` is never used: cargo-dist/src/init/apply_dist/artifacts.rs#L6
error: function `apply` is never used --> cargo-dist/src/init/apply_dist/artifacts.rs:6:8 | 6 | pub fn apply(table: &mut toml_edit::Table, artifacts: &Option<ArtifactLayer>) { | ^^^^^
function `apply_default_install_path` is never used: cargo-dist/src/init/apply_dist/mod.rs#L107
error: function `apply_default_install_path` is never used --> cargo-dist/src/init/apply_dist/mod.rs:107:4 | 107 | fn apply_default_install_path(installers: &Option<InstallerLayer>) -> InstallerLayer { | ^^^^^^^^^^^^^^^^^^^^^^^^^^
function `apply_dist_to_metadata` is never used: cargo-dist/src/init/apply_dist/mod.rs#L25
error: function `apply_dist_to_metadata` is never used --> cargo-dist/src/init/apply_dist/mod.rs:25:8 | 25 | pub fn apply_dist_to_metadata(metadata: &mut toml_edit::Item, meta: &TomlLayer) { | ^^^^^^^^^^^^^^^^^^^^^^
function `apply_dist_to_workspace_toml` is never used: cargo-dist/src/init/apply_dist/mod.rs#L19
error: function `apply_dist_to_workspace_toml` is never used --> cargo-dist/src/init/apply_dist/mod.rs:19:8 | 19 | 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)]`