Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove outdated rust_2018_idioms enforcement #2837

Merged
merged 1 commit into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions sources/api/apiclient/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 0 additions & 2 deletions sources/api/apiserver/src/bin/apiserver.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! This is the primary binary for the Bottlerocket API server.

#![deny(rust_2018_idioms)]

#[macro_use]
extern crate log;

Expand Down
1 change: 0 additions & 1 deletion sources/api/apiserver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions sources/api/bootstrap-containers/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ journalctl -u [email protected]
```
*/

#![deny(rust_2018_idioms)]

#[macro_use]
extern crate log;

Expand Down
2 changes: 0 additions & 2 deletions sources/api/bork/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use rand::{thread_rng, Rng};

fn main() {
Expand Down
2 changes: 0 additions & 2 deletions sources/api/certdog/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
in the API.
*/

#![deny(rust_2018_idioms)]

#[macro_use]
extern crate log;

Expand Down
2 changes: 0 additions & 2 deletions sources/api/corndog/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions sources/api/early-boot-config/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions sources/api/host-containers/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions sources/api/migration/migration-helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::{ListReplacement, ReplaceListsMigration};
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::{migrate, Migration, MigrationData, Result};
use std::process;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::{ListReplacement, ReplaceListsMigration};
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata};
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::{ListReplacement, ReplaceListsMigration};
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::{
MetadataListReplacement, ReplaceMetadataListsMigration,
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::{migrate, Migration, MigrationData, Result};
use std::process;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use lazy_static::lazy_static;
use migration_helpers::{migrate, Migration, MigrationData, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::{error, migrate, Migration, MigrationData, Result};
use snafu::ResultExt;
use std::fs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata};
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceStringMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceStringMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddSettingsMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::{AddMetadataMigration, SettingMetadata};
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::AddPrefixesMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]

use migration_helpers::common_migrations::ReplaceTemplateMigration;
use migration_helpers::{migrate, Result};
use std::process;
Expand Down
Loading