From 5718b97b83b602715797478fb7809f17ea4a7b0d Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Mon, 27 Feb 2023 23:03:47 +0000 Subject: [PATCH] Remove outdated rust_2018_idioms enforcement The `#deny[rust_2018_idiom]` tag was used to help move from Rust 2015 style code to 2018. We've already moved beyond that and clippy flags much more than that. Since these are now useless, this cleans up all instances in the code where we were using this tag. Signed-off-by: Sean McGinnis --- sources/api/apiclient/src/lib.rs | 2 -- sources/api/apiserver/src/bin/apiserver.rs | 2 -- sources/api/apiserver/src/lib.rs | 1 - sources/api/bootstrap-containers/src/main.rs | 2 -- sources/api/bork/src/main.rs | 2 -- sources/api/certdog/src/main.rs | 2 -- sources/api/corndog/src/main.rs | 2 -- sources/api/early-boot-config/src/main.rs | 2 -- sources/api/host-containers/src/main.rs | 2 -- sources/api/migration/migration-helpers/src/lib.rs | 2 -- .../v0.3.2/migrate-admin-container-v0-5-0/src/main.rs | 2 -- .../archived/v0.4.1/add-version-lock-ignore-waves/src/main.rs | 2 -- .../archived/v0.4.1/pivot-repo-2020-07-07/src/main.rs | 2 -- .../migrations/archived/v0.5.0/add-cluster-domain/src/main.rs | 2 -- .../v0.5.0/migrate-admin-container-v0-5-2/src/main.rs | 2 -- .../v0.5.0/migrate-control-container-v0-4-1/src/main.rs | 2 -- .../migrations/archived/v1.0.0/ecr-helper-admin/src/main.rs | 2 -- .../migrations/archived/v1.0.0/ecr-helper-control/src/main.rs | 2 -- .../v1.0.2/add-enable-spot-instance-draining/src/main.rs | 2 -- .../migrations/archived/v1.0.3/add-sysctl/src/main.rs | 2 -- .../migrations/archived/v1.0.5/add-lockdown/src/main.rs | 2 -- .../archived/v1.0.5/add-network-settings/src/main.rs | 2 -- .../migrations/archived/v1.0.5/add-proxy-restart/src/main.rs | 2 -- .../migrations/archived/v1.0.5/add-proxy-services/src/main.rs | 2 -- .../migrations/archived/v1.0.5/add-user-data/src/main.rs | 2 -- .../migrations/archived/v1.0.5/sysctl-subcommand/src/main.rs | 2 -- .../migrations/archived/v1.0.6/add-shibaken/src/main.rs | 2 -- .../migrations/archived/v1.0.6/add-static-pods/src/main.rs | 2 -- .../archived/v1.0.6/admin-container-v0-6-0/src/main.rs | 2 -- .../archived/v1.0.6/control-container-v0-4-2/src/main.rs | 2 -- .../v1.0.6/kubelet-standalone-tls-services/src/main.rs | 2 -- .../v1.0.6/kubelet-standalone-tls-settings/src/main.rs | 2 -- .../migrations/archived/v1.0.6/metricdog-init/src/main.rs | 2 -- .../archived/v1.0.8/add-bootstrap-containers/src/main.rs | 2 -- .../archived/v1.0.8/admin-container-v0-7-0/src/main.rs | 2 -- .../archived/v1.0.8/control-container-v0-5-0/src/main.rs | 2 -- .../archived/v1.0.8/kubelet-eviction-hard/src/main.rs | 2 -- .../v1.0.8/kubelet-unsafe-sysctl-kube-reserved/src/main.rs | 2 -- .../archived/v1.0.8/proxy-affect-host-containers/src/main.rs | 2 -- .../archived/v1.1.0/kubelet-cloud-provider/src/main.rs | 2 -- .../archived/v1.1.0/kubelet-event-qps-event-burst/src/main.rs | 2 -- .../v1.1.0/kubelet-kube-api-qps-kube-api-burst/src/main.rs | 2 -- .../v1.1.0/kubelet-registry-qps-registry-burst/src/main.rs | 2 -- .../archived/v1.1.0/kubelet-server-tls-bootstrap/src/main.rs | 2 -- .../migrations/archived/v1.1.0/schnauzer-paws/src/main.rs | 2 -- .../archived/v1.1.0/shared-containerd-configs/src/main.rs | 2 -- .../archived/v1.1.2/admin-container-v0-7-1/src/main.rs | 2 -- .../archived/v1.1.2/control-container-v0-5-1/src/main.rs | 2 -- .../archived/v1.1.2/kubelet-container-log/src/main.rs | 2 -- .../archived/v1.1.2/kubelet-system-reserved/src/main.rs | 2 -- .../archived/v1.1.3/kubelet-cpu-manager-state/src/main.rs | 2 -- .../archived/v1.1.3/kubelet-cpu-manager/src/main.rs | 2 -- .../archived/v1.10.0/aws-admin-container-v0-9-2/src/main.rs | 2 -- .../archived/v1.10.0/aws-control-container-v0-6-3/src/main.rs | 2 -- .../archived/v1.10.0/dns-settings-metadata/src/main.rs | 2 -- .../migrations/archived/v1.10.0/dns-settings/src/main.rs | 2 -- .../migrations/archived/v1.10.0/kubelet-log-level/src/main.rs | 2 -- .../v1.10.0/public-admin-container-v0-9-2/src/main.rs | 2 -- .../v1.10.0/public-control-container-v0-6-3/src/main.rs | 2 -- .../archived/v1.10.0/reboot-to-reconcile-setting/src/main.rs | 2 -- .../archived/v1.10.1/container-runtime-metadata/src/main.rs | 2 -- .../migrations/archived/v1.10.1/container-runtime/src/main.rs | 2 -- .../archived/v1.11.0/aws-admin-container-v0-9-3/src/main.rs | 2 -- .../archived/v1.11.0/aws-config-settings/src/main.rs | 2 -- .../archived/v1.11.0/aws-control-container-v0-6-4/src/main.rs | 2 -- .../archived/v1.11.0/aws-creds-metadata/src/main.rs | 2 -- .../migrations/archived/v1.11.0/aws-creds/src/main.rs | 2 -- .../archived/v1.11.0/credential-providers/src/main.rs | 2 -- .../v1.11.0/ecs-additional-configurations/src/main.rs | 2 -- .../archived/v1.11.0/kubelet-new-config-files/src/main.rs | 2 -- .../archived/v1.11.0/kubelet-tls-config/src/main.rs | 2 -- .../migrations/archived/v1.11.0/kubelet-tls-files/src/main.rs | 2 -- .../v1.11.0/public-admin-container-v0-9-3/src/main.rs | 2 -- .../v1.11.0/public-control-container-v0-6-4/src/main.rs | 2 -- .../archived/v1.2.0/add-custom-certificates/src/main.rs | 2 -- .../archived/v1.2.0/admin-container-v0-7-2/src/main.rs | 2 -- .../v1.2.0/container-registry-config-restarts/src/main.rs | 2 -- .../archived/v1.2.0/container-registry-mirrors/src/main.rs | 2 -- .../archived/v1.2.0/hostname-setting-metadata/src/main.rs | 2 -- .../migrations/archived/v1.2.0/hostname-setting/src/main.rs | 2 -- .../archived/v1.2.0/kubelet-topology-manager/src/main.rs | 2 -- .../archived/v1.3.0/control-container-v0-5-2/src/main.rs | 2 -- .../migrations/archived/v1.3.0/etc-hosts-service/src/main.rs | 2 -- .../archived/v1.3.0/hostname-affects-etc-hosts/src/main.rs | 2 -- .../v1.4.0/registry-mirror-representation/src/main.rs | 2 -- .../archived/v1.4.2/admin-container-v0-7-3/src/main.rs | 2 -- .../archived/v1.4.2/control-container-v0-5-3/src/main.rs | 2 -- .../archived/v1.5.0/oci-hooks-setting-metadata/src/main.rs | 2 -- .../migrations/archived/v1.5.0/oci-hooks-setting/src/main.rs | 2 -- .../archived/v1.5.1/control-container-v0-5-4/src/main.rs | 2 -- .../archived/v1.5.3/vmware-host-containers/src/main.rs | 2 -- .../archived/v1.6.0/aws-admin-container-v0-7-4/src/main.rs | 2 -- .../archived/v1.6.0/aws-control-container-v0-5-5/src/main.rs | 2 -- .../archived/v1.6.0/node-taints-representation/src/main.rs | 2 -- .../archived/v1.6.0/public-admin-container-v0-7-4/src/main.rs | 2 -- .../v1.6.0/public-control-container-v0-5-5/src/main.rs | 2 -- .../migrations/archived/v1.6.2/add-cfsignal/src/main.rs | 2 -- .../container-registry-credentials-metadata/src/main.rs | 2 -- .../v1.6.2/container-registry-credentials/src/main.rs | 2 -- .../archived/v1.7.0/aws-admin-container-v0-8-0/src/main.rs | 2 -- .../archived/v1.7.0/aws-control-container-v0-6-0/src/main.rs | 2 -- .../archived/v1.7.0/public-admin-container-v0-8-0/src/main.rs | 2 -- .../v1.7.0/public-control-container-v0-6-0/src/main.rs | 2 -- .../migrations/archived/v1.8.0/add-autoscaling/src/main.rs | 2 -- .../migrations/archived/v1.8.0/add-pull-behavior/src/main.rs | 2 -- .../archived/v1.8.0/aws-admin-container-v0-9-0/src/main.rs | 2 -- .../archived/v1.8.0/aws-control-container-v0-6-1/src/main.rs | 2 -- .../archived/v1.8.0/boot-setting-metadata/src/main.rs | 2 -- .../migrations/archived/v1.8.0/boot-setting/src/main.rs | 2 -- .../archived/v1.8.0/cluster-dns-ip-list/src/main.rs | 2 -- .../migrations/archived/v1.8.0/etc-hosts-metadata/src/main.rs | 2 -- .../migrations/archived/v1.8.0/etc-hosts/src/main.rs | 2 -- .../archived/v1.8.0/kubelet-pod-pids-limit/src/main.rs | 2 -- .../archived/v1.8.0/kubelet-provider-id/src/main.rs | 2 -- .../archived/v1.8.0/pki-affected-services/src/main.rs | 2 -- .../archived/v1.8.0/public-admin-container-v0-9-0/src/main.rs | 2 -- .../v1.8.0/public-control-container-v0-6-1/src/main.rs | 2 -- .../archived/v1.9.0/image-gc-thresholds/src/main.rs | 2 -- .../v1.9.0/kernel-modules-setting-metadata/src/main.rs | 2 -- .../archived/v1.9.0/kernel-modules-setting/src/main.rs | 2 -- .../archived/v1.9.0/kubelet-no-daemon-reload/src/main.rs | 2 -- .../archived/v1.9.0/ntp-affected-services/src/main.rs | 2 -- .../v1.9.0/shibaken-admin-userdata-semantics/src/main.rs | 2 -- .../archived/v1.9.0/shibaken-send-metrics/src/main.rs | 2 -- .../archived/v1.9.0/updates-targets-base-url/src/main.rs | 2 -- .../src/main.rs | 2 -- .../v1.12.0/add-k8s-autoscaling-warm-pool-setting/src/main.rs | 2 -- .../migrations/v1.12.0/aws-admin-container-v0-9-4/src/main.rs | 2 -- .../v1.12.0/aws-control-container-v0-7-0/src/main.rs | 2 -- .../migrations/v1.12.0/k8s-private-pki-path/src/main.rs | 2 -- .../v1.12.0/oci-defaults-setting-metadata/src/main.rs | 1 - .../migrations/v1.12.0/oci-defaults-setting/src/main.rs | 2 -- .../v1.12.0/public-admin-container-v0-9-4/src/main.rs | 2 -- .../v1.12.0/public-control-container-v0-7-0/src/main.rs | 2 -- .../api/migration/migrations/v1.13.0/k8s-registry/src/main.rs | 2 -- sources/api/migration/migrator/src/main.rs | 2 -- sources/api/netdog/src/main.rs | 2 -- sources/api/pluto/src/main.rs | 2 -- sources/api/prairiedog/src/main.rs | 2 -- sources/api/schnauzer/src/main.rs | 2 -- sources/api/settings-committer/src/main.rs | 2 -- sources/api/shibaken/src/main.rs | 2 -- sources/api/static-pods/src/main.rs | 2 -- sources/api/storewolf/src/lib.rs | 2 -- sources/api/storewolf/src/main.rs | 2 -- sources/api/sundog/src/main.rs | 2 -- sources/api/thar-be-settings/src/lib.rs | 2 -- sources/cfsignal/src/main.rs | 4 +--- sources/driverdog/src/main.rs | 2 -- sources/imdsclient/src/lib.rs | 2 -- sources/logdog/src/main.rs | 2 -- sources/metricdog/src/main.rs | 4 +--- sources/shimpei/src/main.rs | 2 -- sources/updater/block-party/src/lib.rs | 2 +- sources/updater/signpost/src/main.rs | 1 - sources/updater/updog/src/bin/updata.rs | 1 - sources/updater/updog/src/main.rs | 1 - tools/pubsys-setup/src/main.rs | 2 -- tools/pubsys/src/main.rs | 2 -- 159 files changed, 3 insertions(+), 314 deletions(-) diff --git a/sources/api/apiclient/src/lib.rs b/sources/api/apiclient/src/lib.rs index a923b7f745c..3fe21ee1676 100644 --- a/sources/api/apiclient/src/lib.rs +++ b/sources/api/apiclient/src/lib.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - //! The apiclient library provides high-level methods to interact with the Bottlerocket API. See //! the documentation for submodules [`apply`], [`exec`], [`get`], [`reboot`], [`set`], and //! [`update`] for high-level helpers. diff --git a/sources/api/apiserver/src/bin/apiserver.rs b/sources/api/apiserver/src/bin/apiserver.rs index 155d39ffb9b..88c46b2261a 100644 --- a/sources/api/apiserver/src/bin/apiserver.rs +++ b/sources/api/apiserver/src/bin/apiserver.rs @@ -1,7 +1,5 @@ //! This is the primary binary for the Bottlerocket API server. -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/apiserver/src/lib.rs b/sources/api/apiserver/src/lib.rs index b03febd02d0..5b4b7e7c938 100644 --- a/sources/api/apiserver/src/lib.rs +++ b/sources/api/apiserver/src/lib.rs @@ -69,7 +69,6 @@ You can start the API server from the `apiserver` directory with a command like: Then, from another shell, you can query or modify data. See `../../apiclient/README.md` for client examples. */ -#![deny(rust_2018_idioms)] #[macro_use] extern crate log; diff --git a/sources/api/bootstrap-containers/src/main.rs b/sources/api/bootstrap-containers/src/main.rs index 4bb59e17edf..a8003a3af9c 100644 --- a/sources/api/bootstrap-containers/src/main.rs +++ b/sources/api/bootstrap-containers/src/main.rs @@ -70,8 +70,6 @@ journalctl -u bootstrap-containers@bear.service ``` */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/bork/src/main.rs b/sources/api/bork/src/main.rs index fc49323f7d7..e0b5db5ab12 100644 --- a/sources/api/bork/src/main.rs +++ b/sources/api/bork/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use rand::{thread_rng, Rng}; fn main() { diff --git a/sources/api/certdog/src/main.rs b/sources/api/certdog/src/main.rs index fc4a9068225..4116764ea0d 100644 --- a/sources/api/certdog/src/main.rs +++ b/sources/api/certdog/src/main.rs @@ -4,8 +4,6 @@ in the API. */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/corndog/src/main.rs b/sources/api/corndog/src/main.rs index 13666c51dd3..680f8f90443 100644 --- a/sources/api/corndog/src/main.rs +++ b/sources/api/corndog/src/main.rs @@ -5,8 +5,6 @@ It sets kernel-related settings, for example: * lockdown mode, based on the value of `settings.kernel.lockdown` */ -#![deny(rust_2018_idioms)] - use log::{debug, error, info, trace, warn}; use simplelog::{Config as LogConfig, LevelFilter, SimpleLogger}; use snafu::ResultExt; diff --git a/sources/api/early-boot-config/src/main.rs b/sources/api/early-boot-config/src/main.rs index cc2813ceacc..ad95e5e64a2 100644 --- a/sources/api/early-boot-config/src/main.rs +++ b/sources/api/early-boot-config/src/main.rs @@ -10,8 +10,6 @@ Currently, Amazon EC2 is supported through the IMDSv1 HTTP API. Data will be ta /etc/early-boot-config instead, if available, for testing purposes. */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/host-containers/src/main.rs b/sources/api/host-containers/src/main.rs index ad7fd7bad4e..25bf7222976 100644 --- a/sources/api/host-containers/src/main.rs +++ b/sources/api/host-containers/src/main.rs @@ -11,8 +11,6 @@ It queries the API for their settings, then configures the system by: * ensuring the host container's systemd service is enabled/started or disabled/stopped */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/migration/migration-helpers/src/lib.rs b/sources/api/migration/migration-helpers/src/lib.rs index f91076559f9..3a1787bc044 100644 --- a/sources/api/migration/migration-helpers/src/lib.rs +++ b/sources/api/migration/migration-helpers/src/lib.rs @@ -9,8 +9,6 @@ // locked, and also because migration authors are given an interface for ordering via migration // name, and running in parallel would violate that. -#![deny(rust_2018_idioms)] - mod args; pub mod common_migrations; mod datastore_helper; diff --git a/sources/api/migration/migrations/archived/v0.3.2/migrate-admin-container-v0-5-0/src/main.rs b/sources/api/migration/migrations/archived/v0.3.2/migrate-admin-container-v0-5-0/src/main.rs index a42a0516ff6..21d01992c9b 100644 --- a/sources/api/migration/migrations/archived/v0.3.2/migrate-admin-container-v0-5-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v0.3.2/migrate-admin-container-v0-5-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v0.4.1/add-version-lock-ignore-waves/src/main.rs b/sources/api/migration/migrations/archived/v0.4.1/add-version-lock-ignore-waves/src/main.rs index afe0dd17132..4a8aa15f9f6 100644 --- a/sources/api/migration/migrations/archived/v0.4.1/add-version-lock-ignore-waves/src/main.rs +++ b/sources/api/migration/migrations/archived/v0.4.1/add-version-lock-ignore-waves/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v0.4.1/pivot-repo-2020-07-07/src/main.rs b/sources/api/migration/migrations/archived/v0.4.1/pivot-repo-2020-07-07/src/main.rs index a8a89f7be6d..2bd49328a62 100644 --- a/sources/api/migration/migrations/archived/v0.4.1/pivot-repo-2020-07-07/src/main.rs +++ b/sources/api/migration/migrations/archived/v0.4.1/pivot-repo-2020-07-07/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v0.5.0/add-cluster-domain/src/main.rs b/sources/api/migration/migrations/archived/v0.5.0/add-cluster-domain/src/main.rs index 0f8f6c689e4..c7288d96b6a 100644 --- a/sources/api/migration/migrations/archived/v0.5.0/add-cluster-domain/src/main.rs +++ b/sources/api/migration/migrations/archived/v0.5.0/add-cluster-domain/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v0.5.0/migrate-admin-container-v0-5-2/src/main.rs b/sources/api/migration/migrations/archived/v0.5.0/migrate-admin-container-v0-5-2/src/main.rs index bd691b6d3fb..546320fafb0 100644 --- a/sources/api/migration/migrations/archived/v0.5.0/migrate-admin-container-v0-5-2/src/main.rs +++ b/sources/api/migration/migrations/archived/v0.5.0/migrate-admin-container-v0-5-2/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v0.5.0/migrate-control-container-v0-4-1/src/main.rs b/sources/api/migration/migrations/archived/v0.5.0/migrate-control-container-v0-4-1/src/main.rs index fa8c75b024c..12f395178a2 100644 --- a/sources/api/migration/migrations/archived/v0.5.0/migrate-control-container-v0-4-1/src/main.rs +++ b/sources/api/migration/migrations/archived/v0.5.0/migrate-control-container-v0-4-1/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.0/ecr-helper-admin/src/main.rs b/sources/api/migration/migrations/archived/v1.0.0/ecr-helper-admin/src/main.rs index cfe4da05ab3..460e6737757 100644 --- a/sources/api/migration/migrations/archived/v1.0.0/ecr-helper-admin/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.0/ecr-helper-admin/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.0/ecr-helper-control/src/main.rs b/sources/api/migration/migrations/archived/v1.0.0/ecr-helper-control/src/main.rs index 83eea2cb7aa..2242256c702 100644 --- a/sources/api/migration/migrations/archived/v1.0.0/ecr-helper-control/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.0/ecr-helper-control/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.2/add-enable-spot-instance-draining/src/main.rs b/sources/api/migration/migrations/archived/v1.0.2/add-enable-spot-instance-draining/src/main.rs index baec05083a6..25099c7452d 100644 --- a/sources/api/migration/migrations/archived/v1.0.2/add-enable-spot-instance-draining/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.2/add-enable-spot-instance-draining/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.3/add-sysctl/src/main.rs b/sources/api/migration/migrations/archived/v1.0.3/add-sysctl/src/main.rs index beafe5157f0..7fb58ea2501 100644 --- a/sources/api/migration/migrations/archived/v1.0.3/add-sysctl/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.3/add-sysctl/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.5/add-lockdown/src/main.rs b/sources/api/migration/migrations/archived/v1.0.5/add-lockdown/src/main.rs index b3b6f93a9a0..37ccebe96b6 100644 --- a/sources/api/migration/migrations/archived/v1.0.5/add-lockdown/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.5/add-lockdown/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.5/add-network-settings/src/main.rs b/sources/api/migration/migrations/archived/v1.0.5/add-network-settings/src/main.rs index 47e9d879d0c..4c92b682e3e 100644 --- a/sources/api/migration/migrations/archived/v1.0.5/add-network-settings/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.5/add-network-settings/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.5/add-proxy-restart/src/main.rs b/sources/api/migration/migrations/archived/v1.0.5/add-proxy-restart/src/main.rs index 7abfc8de6bb..58453fdf4a0 100644 --- a/sources/api/migration/migrations/archived/v1.0.5/add-proxy-restart/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.5/add-proxy-restart/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ListReplacement, ReplaceListsMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.5/add-proxy-services/src/main.rs b/sources/api/migration/migrations/archived/v1.0.5/add-proxy-services/src/main.rs index 97299bb7068..307c6c0703c 100644 --- a/sources/api/migration/migrations/archived/v1.0.5/add-proxy-services/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.5/add-proxy-services/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.5/add-user-data/src/main.rs b/sources/api/migration/migrations/archived/v1.0.5/add-user-data/src/main.rs index c05323ee2c4..156caebccb5 100644 --- a/sources/api/migration/migrations/archived/v1.0.5/add-user-data/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.5/add-user-data/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::{migrate, Migration, MigrationData, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.5/sysctl-subcommand/src/main.rs b/sources/api/migration/migrations/archived/v1.0.5/sysctl-subcommand/src/main.rs index a543486d7d9..7ac58c2f683 100644 --- a/sources/api/migration/migrations/archived/v1.0.5/sysctl-subcommand/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.5/sysctl-subcommand/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ListReplacement, ReplaceListsMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.6/add-shibaken/src/main.rs b/sources/api/migration/migrations/archived/v1.0.6/add-shibaken/src/main.rs index c62337e25d5..82907a9e618 100644 --- a/sources/api/migration/migrations/archived/v1.0.6/add-shibaken/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.6/add-shibaken/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.6/add-static-pods/src/main.rs b/sources/api/migration/migrations/archived/v1.0.6/add-static-pods/src/main.rs index a1a803b4050..80029ba05b3 100644 --- a/sources/api/migration/migrations/archived/v1.0.6/add-static-pods/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.6/add-static-pods/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.6/admin-container-v0-6-0/src/main.rs b/sources/api/migration/migrations/archived/v1.0.6/admin-container-v0-6-0/src/main.rs index 4af82120d8f..297c553e6f0 100644 --- a/sources/api/migration/migrations/archived/v1.0.6/admin-container-v0-6-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.6/admin-container-v0-6-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.6/control-container-v0-4-2/src/main.rs b/sources/api/migration/migrations/archived/v1.0.6/control-container-v0-4-2/src/main.rs index 617cd4e981a..49008d55d27 100644 --- a/sources/api/migration/migrations/archived/v1.0.6/control-container-v0-4-2/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.6/control-container-v0-4-2/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.6/kubelet-standalone-tls-services/src/main.rs b/sources/api/migration/migrations/archived/v1.0.6/kubelet-standalone-tls-services/src/main.rs index d926a0ab98f..ab384d47392 100644 --- a/sources/api/migration/migrations/archived/v1.0.6/kubelet-standalone-tls-services/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.6/kubelet-standalone-tls-services/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ListReplacement, ReplaceListsMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.6/kubelet-standalone-tls-settings/src/main.rs b/sources/api/migration/migrations/archived/v1.0.6/kubelet-standalone-tls-settings/src/main.rs index f43e670bff8..7484a4b8508 100644 --- a/sources/api/migration/migrations/archived/v1.0.6/kubelet-standalone-tls-settings/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.6/kubelet-standalone-tls-settings/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.6/metricdog-init/src/main.rs b/sources/api/migration/migrations/archived/v1.0.6/metricdog-init/src/main.rs index 1b003be8079..b13da2f31fb 100644 --- a/sources/api/migration/migrations/archived/v1.0.6/metricdog-init/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.6/metricdog-init/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.8/add-bootstrap-containers/src/main.rs b/sources/api/migration/migrations/archived/v1.0.8/add-bootstrap-containers/src/main.rs index fba6f363c25..2920e5beecf 100644 --- a/sources/api/migration/migrations/archived/v1.0.8/add-bootstrap-containers/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.8/add-bootstrap-containers/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.8/admin-container-v0-7-0/src/main.rs b/sources/api/migration/migrations/archived/v1.0.8/admin-container-v0-7-0/src/main.rs index f56cae4ca0c..9c2a2663d31 100644 --- a/sources/api/migration/migrations/archived/v1.0.8/admin-container-v0-7-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.8/admin-container-v0-7-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.8/control-container-v0-5-0/src/main.rs b/sources/api/migration/migrations/archived/v1.0.8/control-container-v0-5-0/src/main.rs index 10fb0325d47..f1ca09941db 100644 --- a/sources/api/migration/migrations/archived/v1.0.8/control-container-v0-5-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.8/control-container-v0-5-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.8/kubelet-eviction-hard/src/main.rs b/sources/api/migration/migrations/archived/v1.0.8/kubelet-eviction-hard/src/main.rs index d51df1e37d4..7e866f931fa 100644 --- a/sources/api/migration/migrations/archived/v1.0.8/kubelet-eviction-hard/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.8/kubelet-eviction-hard/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.8/kubelet-unsafe-sysctl-kube-reserved/src/main.rs b/sources/api/migration/migrations/archived/v1.0.8/kubelet-unsafe-sysctl-kube-reserved/src/main.rs index 154626a49c6..6fcf5a25627 100644 --- a/sources/api/migration/migrations/archived/v1.0.8/kubelet-unsafe-sysctl-kube-reserved/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.8/kubelet-unsafe-sysctl-kube-reserved/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.0.8/proxy-affect-host-containers/src/main.rs b/sources/api/migration/migrations/archived/v1.0.8/proxy-affect-host-containers/src/main.rs index 0e91037d5ac..d82f4b6be2b 100644 --- a/sources/api/migration/migrations/archived/v1.0.8/proxy-affect-host-containers/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.0.8/proxy-affect-host-containers/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ MetadataListReplacement, ReplaceMetadataListsMigration, }; diff --git a/sources/api/migration/migrations/archived/v1.1.0/kubelet-cloud-provider/src/main.rs b/sources/api/migration/migrations/archived/v1.1.0/kubelet-cloud-provider/src/main.rs index b60b64585df..31c7e925f0f 100644 --- a/sources/api/migration/migrations/archived/v1.1.0/kubelet-cloud-provider/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.0/kubelet-cloud-provider/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.0/kubelet-event-qps-event-burst/src/main.rs b/sources/api/migration/migrations/archived/v1.1.0/kubelet-event-qps-event-burst/src/main.rs index 6254b447c4d..debac87d86c 100644 --- a/sources/api/migration/migrations/archived/v1.1.0/kubelet-event-qps-event-burst/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.0/kubelet-event-qps-event-burst/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.0/kubelet-kube-api-qps-kube-api-burst/src/main.rs b/sources/api/migration/migrations/archived/v1.1.0/kubelet-kube-api-qps-kube-api-burst/src/main.rs index ae42d43d25f..3dbc3544814 100644 --- a/sources/api/migration/migrations/archived/v1.1.0/kubelet-kube-api-qps-kube-api-burst/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.0/kubelet-kube-api-qps-kube-api-burst/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.0/kubelet-registry-qps-registry-burst/src/main.rs b/sources/api/migration/migrations/archived/v1.1.0/kubelet-registry-qps-registry-burst/src/main.rs index 6fa188d680b..6c6d9413b7d 100644 --- a/sources/api/migration/migrations/archived/v1.1.0/kubelet-registry-qps-registry-burst/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.0/kubelet-registry-qps-registry-burst/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.0/kubelet-server-tls-bootstrap/src/main.rs b/sources/api/migration/migrations/archived/v1.1.0/kubelet-server-tls-bootstrap/src/main.rs index b5f947d34e6..00957448c5e 100644 --- a/sources/api/migration/migrations/archived/v1.1.0/kubelet-server-tls-bootstrap/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.0/kubelet-server-tls-bootstrap/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.0/schnauzer-paws/src/main.rs b/sources/api/migration/migrations/archived/v1.1.0/schnauzer-paws/src/main.rs index a918df820c7..b7d7f6ceca9 100644 --- a/sources/api/migration/migrations/archived/v1.1.0/schnauzer-paws/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.0/schnauzer-paws/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::{migrate, Migration, MigrationData, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.0/shared-containerd-configs/src/main.rs b/sources/api/migration/migrations/archived/v1.1.0/shared-containerd-configs/src/main.rs index fd5ce15cec5..2919f30455e 100644 --- a/sources/api/migration/migrations/archived/v1.1.0/shared-containerd-configs/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.0/shared-containerd-configs/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use lazy_static::lazy_static; use migration_helpers::{migrate, Migration, MigrationData, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.2/admin-container-v0-7-1/src/main.rs b/sources/api/migration/migrations/archived/v1.1.2/admin-container-v0-7-1/src/main.rs index 7d17ad0ad6d..b1c0eae3076 100644 --- a/sources/api/migration/migrations/archived/v1.1.2/admin-container-v0-7-1/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.2/admin-container-v0-7-1/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.2/control-container-v0-5-1/src/main.rs b/sources/api/migration/migrations/archived/v1.1.2/control-container-v0-5-1/src/main.rs index 64cec599f9e..135783fc078 100644 --- a/sources/api/migration/migrations/archived/v1.1.2/control-container-v0-5-1/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.2/control-container-v0-5-1/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.2/kubelet-container-log/src/main.rs b/sources/api/migration/migrations/archived/v1.1.2/kubelet-container-log/src/main.rs index 7768e7f5706..8e8d9d4ca51 100644 --- a/sources/api/migration/migrations/archived/v1.1.2/kubelet-container-log/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.2/kubelet-container-log/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.2/kubelet-system-reserved/src/main.rs b/sources/api/migration/migrations/archived/v1.1.2/kubelet-system-reserved/src/main.rs index 9cdb285c10a..df55b21bf95 100644 --- a/sources/api/migration/migrations/archived/v1.1.2/kubelet-system-reserved/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.2/kubelet-system-reserved/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.1.3/kubelet-cpu-manager-state/src/main.rs b/sources/api/migration/migrations/archived/v1.1.3/kubelet-cpu-manager-state/src/main.rs index 5fecf90c559..719db6414d4 100644 --- a/sources/api/migration/migrations/archived/v1.1.3/kubelet-cpu-manager-state/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.3/kubelet-cpu-manager-state/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::{error, migrate, Migration, MigrationData, Result}; use snafu::ResultExt; use std::fs; diff --git a/sources/api/migration/migrations/archived/v1.1.3/kubelet-cpu-manager/src/main.rs b/sources/api/migration/migrations/archived/v1.1.3/kubelet-cpu-manager/src/main.rs index eda792dabfe..f9f04a7e893 100644 --- a/sources/api/migration/migrations/archived/v1.1.3/kubelet-cpu-manager/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.1.3/kubelet-cpu-manager/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.0/aws-admin-container-v0-9-2/src/main.rs b/sources/api/migration/migrations/archived/v1.10.0/aws-admin-container-v0-9-2/src/main.rs index b7df8e5d5cf..34b91399dd9 100644 --- a/sources/api/migration/migrations/archived/v1.10.0/aws-admin-container-v0-9-2/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.0/aws-admin-container-v0-9-2/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.0/aws-control-container-v0-6-3/src/main.rs b/sources/api/migration/migrations/archived/v1.10.0/aws-control-container-v0-6-3/src/main.rs index 61cb9802cf0..863ff838738 100644 --- a/sources/api/migration/migrations/archived/v1.10.0/aws-control-container-v0-6-3/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.0/aws-control-container-v0-6-3/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.0/dns-settings-metadata/src/main.rs b/sources/api/migration/migrations/archived/v1.10.0/dns-settings-metadata/src/main.rs index 0530719f520..2f54b0d3cdd 100644 --- a/sources/api/migration/migrations/archived/v1.10.0/dns-settings-metadata/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.0/dns-settings-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.0/dns-settings/src/main.rs b/sources/api/migration/migrations/archived/v1.10.0/dns-settings/src/main.rs index 0f790d15663..6606f93183f 100644 --- a/sources/api/migration/migrations/archived/v1.10.0/dns-settings/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.0/dns-settings/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.0/kubelet-log-level/src/main.rs b/sources/api/migration/migrations/archived/v1.10.0/kubelet-log-level/src/main.rs index fc5c7a02052..55a3df52667 100644 --- a/sources/api/migration/migrations/archived/v1.10.0/kubelet-log-level/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.0/kubelet-log-level/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.0/public-admin-container-v0-9-2/src/main.rs b/sources/api/migration/migrations/archived/v1.10.0/public-admin-container-v0-9-2/src/main.rs index b699c445389..91c64894a91 100644 --- a/sources/api/migration/migrations/archived/v1.10.0/public-admin-container-v0-9-2/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.0/public-admin-container-v0-9-2/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.0/public-control-container-v0-6-3/src/main.rs b/sources/api/migration/migrations/archived/v1.10.0/public-control-container-v0-6-3/src/main.rs index b0b1913b00b..3d69604ddf5 100644 --- a/sources/api/migration/migrations/archived/v1.10.0/public-control-container-v0-6-3/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.0/public-control-container-v0-6-3/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.0/reboot-to-reconcile-setting/src/main.rs b/sources/api/migration/migrations/archived/v1.10.0/reboot-to-reconcile-setting/src/main.rs index c5951773f70..e4b36a91baf 100644 --- a/sources/api/migration/migrations/archived/v1.10.0/reboot-to-reconcile-setting/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.0/reboot-to-reconcile-setting/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.1/container-runtime-metadata/src/main.rs b/sources/api/migration/migrations/archived/v1.10.1/container-runtime-metadata/src/main.rs index 76ae7471337..0efc23fe3da 100644 --- a/sources/api/migration/migrations/archived/v1.10.1/container-runtime-metadata/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.1/container-runtime-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.10.1/container-runtime/src/main.rs b/sources/api/migration/migrations/archived/v1.10.1/container-runtime/src/main.rs index 63b966fcff5..b7fe4a65a7b 100644 --- a/sources/api/migration/migrations/archived/v1.10.1/container-runtime/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.10.1/container-runtime/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/aws-admin-container-v0-9-3/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/aws-admin-container-v0-9-3/src/main.rs index 8d3502ccdb7..c6e12deb3fe 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/aws-admin-container-v0-9-3/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/aws-admin-container-v0-9-3/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/aws-config-settings/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/aws-config-settings/src/main.rs index 8d59967f5be..99610cb3125 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/aws-config-settings/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/aws-config-settings/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/aws-control-container-v0-6-4/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/aws-control-container-v0-6-4/src/main.rs index e19039dadbc..eb7dad9e563 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/aws-control-container-v0-6-4/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/aws-control-container-v0-6-4/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/aws-creds-metadata/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/aws-creds-metadata/src/main.rs index 5245e7a0f35..82eba78e5ce 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/aws-creds-metadata/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/aws-creds-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/aws-creds/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/aws-creds/src/main.rs index ab4fad3cd30..e4c2c3f203a 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/aws-creds/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/aws-creds/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddPrefixesMigration, AddSettingsMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/credential-providers/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/credential-providers/src/main.rs index 5df620c34fa..4f1c44e5867 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/credential-providers/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/credential-providers/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/ecs-additional-configurations/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/ecs-additional-configurations/src/main.rs index eb586bbe7dd..97a73583542 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/ecs-additional-configurations/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/ecs-additional-configurations/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/kubelet-new-config-files/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/kubelet-new-config-files/src/main.rs index 4437e6679a6..ca89785f041 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/kubelet-new-config-files/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/kubelet-new-config-files/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ListReplacement, ReplaceListsMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/kubelet-tls-config/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/kubelet-tls-config/src/main.rs index e9453370c93..3c76737f3f8 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/kubelet-tls-config/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/kubelet-tls-config/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/kubelet-tls-files/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/kubelet-tls-files/src/main.rs index 863089dd13b..32a42ed435d 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/kubelet-tls-files/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/kubelet-tls-files/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/public-admin-container-v0-9-3/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/public-admin-container-v0-9-3/src/main.rs index 1f74250b8f8..9c6f6ae8f38 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/public-admin-container-v0-9-3/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/public-admin-container-v0-9-3/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.11.0/public-control-container-v0-6-4/src/main.rs b/sources/api/migration/migrations/archived/v1.11.0/public-control-container-v0-6-4/src/main.rs index 79d01f4f2e5..c69ae12f977 100644 --- a/sources/api/migration/migrations/archived/v1.11.0/public-control-container-v0-6-4/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.11.0/public-control-container-v0-6-4/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.2.0/add-custom-certificates/src/main.rs b/sources/api/migration/migrations/archived/v1.2.0/add-custom-certificates/src/main.rs index 223103a8dca..88ff57c5333 100644 --- a/sources/api/migration/migrations/archived/v1.2.0/add-custom-certificates/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.2.0/add-custom-certificates/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.2.0/admin-container-v0-7-2/src/main.rs b/sources/api/migration/migrations/archived/v1.2.0/admin-container-v0-7-2/src/main.rs index e8a77be9de9..b05e70344b4 100644 --- a/sources/api/migration/migrations/archived/v1.2.0/admin-container-v0-7-2/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.2.0/admin-container-v0-7-2/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.2.0/container-registry-config-restarts/src/main.rs b/sources/api/migration/migrations/archived/v1.2.0/container-registry-config-restarts/src/main.rs index 36417a551f9..bfa38277275 100644 --- a/sources/api/migration/migrations/archived/v1.2.0/container-registry-config-restarts/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.2.0/container-registry-config-restarts/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ListReplacement, ReplaceListsMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.2.0/container-registry-mirrors/src/main.rs b/sources/api/migration/migrations/archived/v1.2.0/container-registry-mirrors/src/main.rs index 1e906a6885c..0ed91fd1fd5 100644 --- a/sources/api/migration/migrations/archived/v1.2.0/container-registry-mirrors/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.2.0/container-registry-mirrors/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.2.0/hostname-setting-metadata/src/main.rs b/sources/api/migration/migrations/archived/v1.2.0/hostname-setting-metadata/src/main.rs index 4a906b60c69..213e1e8807f 100644 --- a/sources/api/migration/migrations/archived/v1.2.0/hostname-setting-metadata/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.2.0/hostname-setting-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.2.0/hostname-setting/src/main.rs b/sources/api/migration/migrations/archived/v1.2.0/hostname-setting/src/main.rs index 6b65ea3d0b2..1de5e4141a9 100644 --- a/sources/api/migration/migrations/archived/v1.2.0/hostname-setting/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.2.0/hostname-setting/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.2.0/kubelet-topology-manager/src/main.rs b/sources/api/migration/migrations/archived/v1.2.0/kubelet-topology-manager/src/main.rs index f39825e69f7..cb8d0477eaa 100644 --- a/sources/api/migration/migrations/archived/v1.2.0/kubelet-topology-manager/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.2.0/kubelet-topology-manager/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.3.0/control-container-v0-5-2/src/main.rs b/sources/api/migration/migrations/archived/v1.3.0/control-container-v0-5-2/src/main.rs index c76343d8dec..889d4440ea0 100644 --- a/sources/api/migration/migrations/archived/v1.3.0/control-container-v0-5-2/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.3.0/control-container-v0-5-2/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.3.0/etc-hosts-service/src/main.rs b/sources/api/migration/migrations/archived/v1.3.0/etc-hosts-service/src/main.rs index 5363d9f74e2..81105acf8e4 100644 --- a/sources/api/migration/migrations/archived/v1.3.0/etc-hosts-service/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.3.0/etc-hosts-service/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.3.0/hostname-affects-etc-hosts/src/main.rs b/sources/api/migration/migrations/archived/v1.3.0/hostname-affects-etc-hosts/src/main.rs index e2e5dee0579..7f65de22146 100644 --- a/sources/api/migration/migrations/archived/v1.3.0/hostname-affects-etc-hosts/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.3.0/hostname-affects-etc-hosts/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ MetadataListReplacement, ReplaceMetadataListsMigration, }; diff --git a/sources/api/migration/migrations/archived/v1.4.0/registry-mirror-representation/src/main.rs b/sources/api/migration/migrations/archived/v1.4.0/registry-mirror-representation/src/main.rs index e9cb54ad814..01acb1200d7 100644 --- a/sources/api/migration/migrations/archived/v1.4.0/registry-mirror-representation/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.4.0/registry-mirror-representation/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::{migrate, Migration, MigrationData, Result}; use serde_json::{Map, Value}; use std::collections::HashMap; diff --git a/sources/api/migration/migrations/archived/v1.4.2/admin-container-v0-7-3/src/main.rs b/sources/api/migration/migrations/archived/v1.4.2/admin-container-v0-7-3/src/main.rs index c2de832acd6..71e8462b48d 100644 --- a/sources/api/migration/migrations/archived/v1.4.2/admin-container-v0-7-3/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.4.2/admin-container-v0-7-3/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.4.2/control-container-v0-5-3/src/main.rs b/sources/api/migration/migrations/archived/v1.4.2/control-container-v0-5-3/src/main.rs index 17ab3e35620..a068ef29628 100644 --- a/sources/api/migration/migrations/archived/v1.4.2/control-container-v0-5-3/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.4.2/control-container-v0-5-3/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.5.0/oci-hooks-setting-metadata/src/main.rs b/sources/api/migration/migrations/archived/v1.5.0/oci-hooks-setting-metadata/src/main.rs index 5b70ebddbcb..094cd9c7c54 100644 --- a/sources/api/migration/migrations/archived/v1.5.0/oci-hooks-setting-metadata/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.5.0/oci-hooks-setting-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.5.0/oci-hooks-setting/src/main.rs b/sources/api/migration/migrations/archived/v1.5.0/oci-hooks-setting/src/main.rs index 5d63e0cb6e0..bfedf97d5bb 100644 --- a/sources/api/migration/migrations/archived/v1.5.0/oci-hooks-setting/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.5.0/oci-hooks-setting/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.5.1/control-container-v0-5-4/src/main.rs b/sources/api/migration/migrations/archived/v1.5.1/control-container-v0-5-4/src/main.rs index 3f1014e0936..3996fb485c5 100644 --- a/sources/api/migration/migrations/archived/v1.5.1/control-container-v0-5-4/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.5.1/control-container-v0-5-4/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.5.3/vmware-host-containers/src/main.rs b/sources/api/migration/migrations/archived/v1.5.3/vmware-host-containers/src/main.rs index ff80696caa7..4f42f465ea7 100644 --- a/sources/api/migration/migrations/archived/v1.5.3/vmware-host-containers/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.5.3/vmware-host-containers/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::{migrate, Migration, MigrationData, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.6.0/aws-admin-container-v0-7-4/src/main.rs b/sources/api/migration/migrations/archived/v1.6.0/aws-admin-container-v0-7-4/src/main.rs index 3c9fdc859ab..7ab35f549e5 100644 --- a/sources/api/migration/migrations/archived/v1.6.0/aws-admin-container-v0-7-4/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.6.0/aws-admin-container-v0-7-4/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.6.0/aws-control-container-v0-5-5/src/main.rs b/sources/api/migration/migrations/archived/v1.6.0/aws-control-container-v0-5-5/src/main.rs index 61784603b30..7de8f7ece86 100644 --- a/sources/api/migration/migrations/archived/v1.6.0/aws-control-container-v0-5-5/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.6.0/aws-control-container-v0-5-5/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.6.0/node-taints-representation/src/main.rs b/sources/api/migration/migrations/archived/v1.6.0/node-taints-representation/src/main.rs index e0840ed800d..bf922a7dd77 100644 --- a/sources/api/migration/migrations/archived/v1.6.0/node-taints-representation/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.6.0/node-taints-representation/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::{error, migrate, Migration, MigrationData, Result}; use serde_json::Value; use snafu::OptionExt; diff --git a/sources/api/migration/migrations/archived/v1.6.0/public-admin-container-v0-7-4/src/main.rs b/sources/api/migration/migrations/archived/v1.6.0/public-admin-container-v0-7-4/src/main.rs index 344e89c4a14..9284114388c 100644 --- a/sources/api/migration/migrations/archived/v1.6.0/public-admin-container-v0-7-4/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.6.0/public-admin-container-v0-7-4/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.6.0/public-control-container-v0-5-5/src/main.rs b/sources/api/migration/migrations/archived/v1.6.0/public-control-container-v0-5-5/src/main.rs index 4fadfe7e90a..f8f08004d3d 100644 --- a/sources/api/migration/migrations/archived/v1.6.0/public-control-container-v0-5-5/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.6.0/public-control-container-v0-5-5/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.6.2/add-cfsignal/src/main.rs b/sources/api/migration/migrations/archived/v1.6.2/add-cfsignal/src/main.rs index 59c6116dbef..c9e034e2c3c 100644 --- a/sources/api/migration/migrations/archived/v1.6.2/add-cfsignal/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.6.2/add-cfsignal/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.6.2/container-registry-credentials-metadata/src/main.rs b/sources/api/migration/migrations/archived/v1.6.2/container-registry-credentials-metadata/src/main.rs index 312d435f24a..d600e210c8e 100644 --- a/sources/api/migration/migrations/archived/v1.6.2/container-registry-credentials-metadata/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.6.2/container-registry-credentials-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.6.2/container-registry-credentials/src/main.rs b/sources/api/migration/migrations/archived/v1.6.2/container-registry-credentials/src/main.rs index b8fb5033867..7d71315cbf7 100644 --- a/sources/api/migration/migrations/archived/v1.6.2/container-registry-credentials/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.6.2/container-registry-credentials/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.7.0/aws-admin-container-v0-8-0/src/main.rs b/sources/api/migration/migrations/archived/v1.7.0/aws-admin-container-v0-8-0/src/main.rs index 88e4d004953..569de6e4676 100644 --- a/sources/api/migration/migrations/archived/v1.7.0/aws-admin-container-v0-8-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.7.0/aws-admin-container-v0-8-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.7.0/aws-control-container-v0-6-0/src/main.rs b/sources/api/migration/migrations/archived/v1.7.0/aws-control-container-v0-6-0/src/main.rs index 9d74915ec9f..eab2c9e474b 100644 --- a/sources/api/migration/migrations/archived/v1.7.0/aws-control-container-v0-6-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.7.0/aws-control-container-v0-6-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.7.0/public-admin-container-v0-8-0/src/main.rs b/sources/api/migration/migrations/archived/v1.7.0/public-admin-container-v0-8-0/src/main.rs index e13dc3a46a5..a6936d5ca88 100644 --- a/sources/api/migration/migrations/archived/v1.7.0/public-admin-container-v0-8-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.7.0/public-admin-container-v0-8-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.7.0/public-control-container-v0-6-0/src/main.rs b/sources/api/migration/migrations/archived/v1.7.0/public-control-container-v0-6-0/src/main.rs index 4d94bbd49aa..4760d29fe27 100644 --- a/sources/api/migration/migrations/archived/v1.7.0/public-control-container-v0-6-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.7.0/public-control-container-v0-6-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/add-autoscaling/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/add-autoscaling/src/main.rs index 004cf29c7aa..2c87f5fcd35 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/add-autoscaling/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/add-autoscaling/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/add-pull-behavior/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/add-pull-behavior/src/main.rs index 283e60d2393..1185a5b0147 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/add-pull-behavior/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/add-pull-behavior/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/aws-admin-container-v0-9-0/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/aws-admin-container-v0-9-0/src/main.rs index 340b35f1fed..3252ca8bfae 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/aws-admin-container-v0-9-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/aws-admin-container-v0-9-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/aws-control-container-v0-6-1/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/aws-control-container-v0-6-1/src/main.rs index 28db8448c01..4a39cf08434 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/aws-control-container-v0-6-1/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/aws-control-container-v0-6-1/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/boot-setting-metadata/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/boot-setting-metadata/src/main.rs index 93afd421e61..91f38f312e5 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/boot-setting-metadata/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/boot-setting-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/boot-setting/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/boot-setting/src/main.rs index 25a1788cbb7..94bc8254b8a 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/boot-setting/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/boot-setting/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/cluster-dns-ip-list/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/cluster-dns-ip-list/src/main.rs index 0206749ba35..840234cf8bd 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/cluster-dns-ip-list/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/cluster-dns-ip-list/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::{migrate, Migration, MigrationData, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/etc-hosts-metadata/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/etc-hosts-metadata/src/main.rs index e8279e19245..ce790c907a5 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/etc-hosts-metadata/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/etc-hosts-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/etc-hosts/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/etc-hosts/src/main.rs index 1dbbc07e8a7..0ad4e6ddfb1 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/etc-hosts/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/etc-hosts/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/kubelet-pod-pids-limit/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/kubelet-pod-pids-limit/src/main.rs index 11e5a1215d1..1d1c0fc6350 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/kubelet-pod-pids-limit/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/kubelet-pod-pids-limit/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/kubelet-provider-id/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/kubelet-provider-id/src/main.rs index c4de09ccd7a..322ed92dc28 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/kubelet-provider-id/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/kubelet-provider-id/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/pki-affected-services/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/pki-affected-services/src/main.rs index 92eb3abfab5..b50343704c0 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/pki-affected-services/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/pki-affected-services/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ MetadataListReplacement, ReplaceMetadataListsMigration, }; diff --git a/sources/api/migration/migrations/archived/v1.8.0/public-admin-container-v0-9-0/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/public-admin-container-v0-9-0/src/main.rs index e65766319c2..a7155f6ae03 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/public-admin-container-v0-9-0/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/public-admin-container-v0-9-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.8.0/public-control-container-v0-6-1/src/main.rs b/sources/api/migration/migrations/archived/v1.8.0/public-control-container-v0-6-1/src/main.rs index 781d96b0020..31bd513c4a7 100644 --- a/sources/api/migration/migrations/archived/v1.8.0/public-control-container-v0-6-1/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.8.0/public-control-container-v0-6-1/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.9.0/image-gc-thresholds/src/main.rs b/sources/api/migration/migrations/archived/v1.9.0/image-gc-thresholds/src/main.rs index a8604e1704b..55c8139daa7 100644 --- a/sources/api/migration/migrations/archived/v1.9.0/image-gc-thresholds/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.9.0/image-gc-thresholds/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddSettingsMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.9.0/kernel-modules-setting-metadata/src/main.rs b/sources/api/migration/migrations/archived/v1.9.0/kernel-modules-setting-metadata/src/main.rs index e72b7cb78be..800be1a383f 100644 --- a/sources/api/migration/migrations/archived/v1.9.0/kernel-modules-setting-metadata/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.9.0/kernel-modules-setting-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.9.0/kernel-modules-setting/src/main.rs b/sources/api/migration/migrations/archived/v1.9.0/kernel-modules-setting/src/main.rs index c79aafa48c3..06d8a7c09dc 100644 --- a/sources/api/migration/migrations/archived/v1.9.0/kernel-modules-setting/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.9.0/kernel-modules-setting/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.9.0/kubelet-no-daemon-reload/src/main.rs b/sources/api/migration/migrations/archived/v1.9.0/kubelet-no-daemon-reload/src/main.rs index 3cee271ba00..f44c48ea485 100644 --- a/sources/api/migration/migrations/archived/v1.9.0/kubelet-no-daemon-reload/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.9.0/kubelet-no-daemon-reload/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ListReplacement, ReplaceListsMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.9.0/ntp-affected-services/src/main.rs b/sources/api/migration/migrations/archived/v1.9.0/ntp-affected-services/src/main.rs index b9fd3d0b84d..e2cd2f53680 100644 --- a/sources/api/migration/migrations/archived/v1.9.0/ntp-affected-services/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.9.0/ntp-affected-services/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{ MetadataListReplacement, ReplaceMetadataListsMigration, }; diff --git a/sources/api/migration/migrations/archived/v1.9.0/shibaken-admin-userdata-semantics/src/main.rs b/sources/api/migration/migrations/archived/v1.9.0/shibaken-admin-userdata-semantics/src/main.rs index ddeec23bdb0..08385210f47 100644 --- a/sources/api/migration/migrations/archived/v1.9.0/shibaken-admin-userdata-semantics/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.9.0/shibaken-admin-userdata-semantics/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{MetadataReplacement, ReplaceMetadataMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.9.0/shibaken-send-metrics/src/main.rs b/sources/api/migration/migrations/archived/v1.9.0/shibaken-send-metrics/src/main.rs index c4394de646c..33c68a32c85 100644 --- a/sources/api/migration/migrations/archived/v1.9.0/shibaken-send-metrics/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.9.0/shibaken-send-metrics/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/archived/v1.9.0/updates-targets-base-url/src/main.rs b/sources/api/migration/migrations/archived/v1.9.0/updates-targets-base-url/src/main.rs index 48109465e43..544e1180c2b 100644 --- a/sources/api/migration/migrations/archived/v1.9.0/updates-targets-base-url/src/main.rs +++ b/sources/api/migration/migrations/archived/v1.9.0/updates-targets-base-url/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.12.0/add-k8s-autoscaling-warm-pool-setting-metadata/src/main.rs b/sources/api/migration/migrations/v1.12.0/add-k8s-autoscaling-warm-pool-setting-metadata/src/main.rs index 8a4e76d6ad7..ac393863a66 100644 --- a/sources/api/migration/migrations/v1.12.0/add-k8s-autoscaling-warm-pool-setting-metadata/src/main.rs +++ b/sources/api/migration/migrations/v1.12.0/add-k8s-autoscaling-warm-pool-setting-metadata/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddMetadataMigration, NoOpMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.12.0/add-k8s-autoscaling-warm-pool-setting/src/main.rs b/sources/api/migration/migrations/v1.12.0/add-k8s-autoscaling-warm-pool-setting/src/main.rs index ad14000b688..968700bb277 100644 --- a/sources/api/migration/migrations/v1.12.0/add-k8s-autoscaling-warm-pool-setting/src/main.rs +++ b/sources/api/migration/migrations/v1.12.0/add-k8s-autoscaling-warm-pool-setting/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddPrefixesMigration, NoOpMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.12.0/aws-admin-container-v0-9-4/src/main.rs b/sources/api/migration/migrations/v1.12.0/aws-admin-container-v0-9-4/src/main.rs index 918e9ce3594..1f90ad1e925 100644 --- a/sources/api/migration/migrations/v1.12.0/aws-admin-container-v0-9-4/src/main.rs +++ b/sources/api/migration/migrations/v1.12.0/aws-admin-container-v0-9-4/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.12.0/aws-control-container-v0-7-0/src/main.rs b/sources/api/migration/migrations/v1.12.0/aws-control-container-v0-7-0/src/main.rs index f811394d752..11371bfe555 100644 --- a/sources/api/migration/migrations/v1.12.0/aws-control-container-v0-7-0/src/main.rs +++ b/sources/api/migration/migrations/v1.12.0/aws-control-container-v0-7-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceTemplateMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.12.0/k8s-private-pki-path/src/main.rs b/sources/api/migration/migrations/v1.12.0/k8s-private-pki-path/src/main.rs index ffa32ef1830..95cb218b419 100644 --- a/sources/api/migration/migrations/v1.12.0/k8s-private-pki-path/src/main.rs +++ b/sources/api/migration/migrations/v1.12.0/k8s-private-pki-path/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::{migrate, Migration, MigrationData, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.12.0/oci-defaults-setting-metadata/src/main.rs b/sources/api/migration/migrations/v1.12.0/oci-defaults-setting-metadata/src/main.rs index f8610cc70ce..c9974ed8cf7 100644 --- a/sources/api/migration/migrations/v1.12.0/oci-defaults-setting-metadata/src/main.rs +++ b/sources/api/migration/migrations/v1.12.0/oci-defaults-setting-metadata/src/main.rs @@ -1,4 +1,3 @@ -#![deny(rust_2018_idioms)] use migration_helpers::common_migrations::{AddMetadataMigration, NoOpMigration, SettingMetadata}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.12.0/oci-defaults-setting/src/main.rs b/sources/api/migration/migrations/v1.12.0/oci-defaults-setting/src/main.rs index 84438b42287..c27c66df715 100644 --- a/sources/api/migration/migrations/v1.12.0/oci-defaults-setting/src/main.rs +++ b/sources/api/migration/migrations/v1.12.0/oci-defaults-setting/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::{AddPrefixesMigration, NoOpMigration}; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.12.0/public-admin-container-v0-9-4/src/main.rs b/sources/api/migration/migrations/v1.12.0/public-admin-container-v0-9-4/src/main.rs index 2e2d739bedf..0cab19c4fec 100644 --- a/sources/api/migration/migrations/v1.12.0/public-admin-container-v0-9-4/src/main.rs +++ b/sources/api/migration/migrations/v1.12.0/public-admin-container-v0-9-4/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.12.0/public-control-container-v0-7-0/src/main.rs b/sources/api/migration/migrations/v1.12.0/public-control-container-v0-7-0/src/main.rs index 18132868711..825f78a706b 100644 --- a/sources/api/migration/migrations/v1.12.0/public-control-container-v0-7-0/src/main.rs +++ b/sources/api/migration/migrations/v1.12.0/public-control-container-v0-7-0/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrations/v1.13.0/k8s-registry/src/main.rs b/sources/api/migration/migrations/v1.13.0/k8s-registry/src/main.rs index 7634c541375..298c3b837d9 100644 --- a/sources/api/migration/migrations/v1.13.0/k8s-registry/src/main.rs +++ b/sources/api/migration/migrations/v1.13.0/k8s-registry/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use migration_helpers::common_migrations::ReplaceStringMigration; use migration_helpers::{migrate, Result}; use std::process; diff --git a/sources/api/migration/migrator/src/main.rs b/sources/api/migration/migrator/src/main.rs index 1cb91d5b355..b6f685d6745 100644 --- a/sources/api/migration/migrator/src/main.rs +++ b/sources/api/migration/migrator/src/main.rs @@ -18,8 +18,6 @@ //! To understand motivation and more about the overall process, look at the migration system //! documentation, one level up. -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/netdog/src/main.rs b/sources/api/netdog/src/main.rs index 424bb560ba0..40020d02ba1 100644 --- a/sources/api/netdog/src/main.rs +++ b/sources/api/netdog/src/main.rs @@ -26,8 +26,6 @@ supplementing any missing settings with DNS settings from the primary interface' is meant to be used as a restart command for DNS API settings. */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate serde_plain; diff --git a/sources/api/pluto/src/main.rs b/sources/api/pluto/src/main.rs index 83268396b35..691ff06d05d 100644 --- a/sources/api/pluto/src/main.rs +++ b/sources/api/pluto/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - /*! # Introduction diff --git a/sources/api/prairiedog/src/main.rs b/sources/api/prairiedog/src/main.rs index 6dc2357890e..0d22ace7cd9 100644 --- a/sources/api/prairiedog/src/main.rs +++ b/sources/api/prairiedog/src/main.rs @@ -10,8 +10,6 @@ It does the following: */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/schnauzer/src/main.rs b/sources/api/schnauzer/src/main.rs index de01d35c174..8fc045befae 100644 --- a/sources/api/schnauzer/src/main.rs +++ b/sources/api/schnauzer/src/main.rs @@ -13,8 +13,6 @@ If the returned value is "baz", our generated value will be "foo-baz". (The name "schnauzer" comes from the fact that Schnauzers are search and rescue dogs (similar to this search and replace task) and because they have mustaches.) */ -#![deny(rust_2018_idioms)] - use snafu::{ensure, OptionExt, ResultExt}; use std::collections::HashMap; use std::string::String; diff --git a/sources/api/settings-committer/src/main.rs b/sources/api/settings-committer/src/main.rs index 77a5e2b2e71..807938d1e5d 100644 --- a/sources/api/settings-committer/src/main.rs +++ b/sources/api/settings-committer/src/main.rs @@ -8,8 +8,6 @@ By default, it commits the 'bottlerocket-launch' transaction, which is used to o The `--transaction` argument can be used to specify another transaction. */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/shibaken/src/main.rs b/sources/api/shibaken/src/main.rs index 3bbff12f4ca..179879a2a16 100644 --- a/sources/api/shibaken/src/main.rs +++ b/sources/api/shibaken/src/main.rs @@ -13,8 +13,6 @@ shibaken can: (The name "shibaken" comes from the fact that Shiba are small, but agile, hunting dogs.) */ -#![deny(rust_2018_idioms)] - use argh::FromArgs; use simplelog::{ColorChoice, Config as LogConfig, LevelFilter, TermLogger, TerminalMode}; use snafu::ResultExt; diff --git a/sources/api/static-pods/src/main.rs b/sources/api/static-pods/src/main.rs index 90bd86bb751..f98ea26a14c 100644 --- a/sources/api/static-pods/src/main.rs +++ b/sources/api/static-pods/src/main.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - #[cfg(variant_runtime = "k8s")] mod static_pods; #[cfg(variant_runtime = "k8s")] diff --git a/sources/api/storewolf/src/lib.rs b/sources/api/storewolf/src/lib.rs index a04465dfc6e..61547391d2a 100644 --- a/sources/api/storewolf/src/lib.rs +++ b/sources/api/storewolf/src/lib.rs @@ -1,5 +1,3 @@ -#![deny(rust_2018_idioms)] - use bottlerocket_release::BottlerocketRelease; use rand::distributions::Alphanumeric; use rand::{thread_rng, Rng}; diff --git a/sources/api/storewolf/src/main.rs b/sources/api/storewolf/src/main.rs index 1259c09fa3a..552814b1ace 100644 --- a/sources/api/storewolf/src/main.rs +++ b/sources/api/storewolf/src/main.rs @@ -6,8 +6,6 @@ storewolf creates the filesystem datastore used by the API system. It creates the datastore at a provided path and populates any default settings, as given in the TOML files of the current variant's `defaults.d` directory, unless the datastore already exists. */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/sundog/src/main.rs b/sources/api/sundog/src/main.rs index 6b76bca3496..1145df1ab39 100644 --- a/sources/api/sundog/src/main.rs +++ b/sources/api/sundog/src/main.rs @@ -7,8 +7,6 @@ It requests settings generators from the API and runs them. The output is collected and sent to a known Bottlerocket API server endpoint. */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/api/thar-be-settings/src/lib.rs b/sources/api/thar-be-settings/src/lib.rs index d1f8ce02f3b..d59bb9fdaee 100644 --- a/sources/api/thar-be-settings/src/lib.rs +++ b/sources/api/thar-be-settings/src/lib.rs @@ -14,8 +14,6 @@ Service data from the API includes any commands needed to restart services affec In the standalone ("all keys") mode, it queries the API for all services and configuration files, then renders and rewrites all configuration files and restarts all services. */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/cfsignal/src/main.rs b/sources/cfsignal/src/main.rs index 9d45c586ef5..45fd07ae268 100644 --- a/sources/cfsignal/src/main.rs +++ b/sources/cfsignal/src/main.rs @@ -1,4 +1,4 @@ -#![deny(rust_2018_idioms, unused_imports)] +#![deny(unused_imports)] /*! ## Introduction @@ -17,8 +17,6 @@ Configuration is read from a TOML file, which is generated from Bottlerocket set * `logical_resource_id`: The logical ID of the AutoScalingGroup resource that you want to signal. */ -#![deny(rust_2018_idioms)] - mod cloudformation; mod config; mod error; diff --git a/sources/driverdog/src/main.rs b/sources/driverdog/src/main.rs index 9147f958e77..e9e24f33724 100644 --- a/sources/driverdog/src/main.rs +++ b/sources/driverdog/src/main.rs @@ -7,8 +7,6 @@ driverdog is a tool to link kernel modules at runtime. It uses a toml configurat `kernel-modules`: hash with the kernel modules to be linked, each kernel module in the map should include the files used to link it */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/imdsclient/src/lib.rs b/sources/imdsclient/src/lib.rs index 7d275b0afdb..71674c58575 100644 --- a/sources/imdsclient/src/lib.rs +++ b/sources/imdsclient/src/lib.rs @@ -17,8 +17,6 @@ will create an IMDSv2 session _(if one does not already exist)_ and send a reque The result is returned as a `String` _(ex. m5.large)_. */ -#![deny(rust_2018_idioms)] - use std::sync::RwLock; use http::StatusCode; diff --git a/sources/logdog/src/main.rs b/sources/logdog/src/main.rs index 8aa87222853..140133ee7df 100644 --- a/sources/logdog/src/main.rs +++ b/sources/logdog/src/main.rs @@ -22,8 +22,6 @@ based on the value of the `VARIANT` environment variable at build time. */ -#![deny(rust_2018_idioms)] - mod create_tarball; mod error; mod log_request; diff --git a/sources/metricdog/src/main.rs b/sources/metricdog/src/main.rs index 9db8956837b..1b5cce72779 100644 --- a/sources/metricdog/src/main.rs +++ b/sources/metricdog/src/main.rs @@ -1,4 +1,4 @@ -#![deny(rust_2018_idioms, unused_imports)] +#![deny(unused_imports)] /*! # Introduction @@ -57,8 +57,6 @@ ignore_waves = false ``` */ -#![deny(rust_2018_idioms)] - mod args; mod config; mod error; diff --git a/sources/shimpei/src/main.rs b/sources/shimpei/src/main.rs index 4952132b1ac..2d187045172 100644 --- a/sources/shimpei/src/main.rs +++ b/sources/shimpei/src/main.rs @@ -4,8 +4,6 @@ parameters that can't be provided by containerd. */ -#![deny(rust_2018_idioms)] - #[macro_use] extern crate log; diff --git a/sources/updater/block-party/src/lib.rs b/sources/updater/block-party/src/lib.rs index dc28ab1f1e5..b0525bbaced 100644 --- a/sources/updater/block-party/src/lib.rs +++ b/sources/updater/block-party/src/lib.rs @@ -6,7 +6,7 @@ //! * Getting a numbered partition on a disk //! * Getting the devices that are combined as a block device, e.g. a dm-verity device -#![deny(missing_docs, rust_2018_idioms)] +#![deny(missing_docs)] use snafu::{ensure, OptionExt, ResultExt}; use std::ffi::OsString; diff --git a/sources/updater/signpost/src/main.rs b/sources/updater/signpost/src/main.rs index 4343db853bc..96877249836 100644 --- a/sources/updater/signpost/src/main.rs +++ b/sources/updater/signpost/src/main.rs @@ -1,4 +1,3 @@ -#![deny(rust_2018_idioms)] #![warn(clippy::pedantic)] use serde::Deserialize; diff --git a/sources/updater/updog/src/bin/updata.rs b/sources/updater/updog/src/bin/updata.rs index 6ac91769aff..2a9ccad2680 100644 --- a/sources/updater/updog/src/bin/updata.rs +++ b/sources/updater/updog/src/bin/updata.rs @@ -1,4 +1,3 @@ -#![deny(rust_2018_idioms)] #![warn(clippy::pedantic)] #[path = "../error.rs"] diff --git a/sources/updater/updog/src/main.rs b/sources/updater/updog/src/main.rs index ea5332067ff..f76f63dd6e9 100644 --- a/sources/updater/updog/src/main.rs +++ b/sources/updater/updog/src/main.rs @@ -1,4 +1,3 @@ -#![deny(rust_2018_idioms)] #![warn(clippy::pedantic)] mod error; diff --git a/tools/pubsys-setup/src/main.rs b/tools/pubsys-setup/src/main.rs index 002c54ded6e..423ca3b523b 100644 --- a/tools/pubsys-setup/src/main.rs +++ b/tools/pubsys-setup/src/main.rs @@ -4,8 +4,6 @@ the repos you use to update them. Specifically, it can create a new key and rol existing role. */ -#![deny(rust_2018_idioms)] - use log::{debug, info, trace, warn}; use pubsys_config::InfraConfig; use sha2::{Digest, Sha512}; diff --git a/tools/pubsys/src/main.rs b/tools/pubsys/src/main.rs index b6c44716b34..8f7da0e3548 100644 --- a/tools/pubsys/src/main.rs +++ b/tools/pubsys/src/main.rs @@ -21,8 +21,6 @@ Configuration comes from: * Policy files for repo metadata expiration and update wave timing */ -#![deny(rust_2018_idioms)] - mod aws; mod repo; mod vmware;