diff options
author | Dennis Kempin <denniskempin@google.com> | 2022-07-27 18:11:32 +0000 |
---|---|---|
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-28 00:15:50 +0000 |
commit | 4fea399df99dd7b8f6eeaf02ca375181b48d3ca2 (patch) | |
tree | a5974e5a8ed3209768bbf91684a262d6a9202980 /broker_ipc | |
parent | 18d435aa17186dd30385d231cc855d06d30d520e (diff) | |
download | crosvm-4fea399df99dd7b8f6eeaf02ca375181b48d3ca2.tar.gz |
Reformat imports
crosvm is switching the import style to use one import per line.
While more verbose, this will greatly reduce the occurence of merge
conflicts going forward.
Note: This is using a nightly feature of rustfmt. So it's a one-off
re-format only. We are considering adding a nightly toolchain to
enable the feature permanently.
BUG=b:239937122
TEST=CQ
Change-Id: Id2dd4dbdc0adfc4f8f3dd1d09da1daafa2a39992
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3784345
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Diffstat (limited to 'broker_ipc')
-rw-r--r-- | broker_ipc/src/generic.rs | 10 | ||||
-rw-r--r-- | broker_ipc/src/lib.rs | 25 |
2 files changed, 24 insertions, 11 deletions
diff --git a/broker_ipc/src/generic.rs b/broker_ipc/src/generic.rs index b39820169..0553a8dca 100644 --- a/broker_ipc/src/generic.rs +++ b/broker_ipc/src/generic.rs @@ -5,11 +5,15 @@ //! Generic implementation of product specific functions that are called on child process //! initialization. -use crate::{log_file_from_path, CommonChildStartupArgs}; -use base::Tube; -use serde::{Deserialize, Serialize}; use std::path::PathBuf; +use base::Tube; +use serde::Deserialize; +use serde::Serialize; + +use crate::log_file_from_path; +use crate::CommonChildStartupArgs; + #[derive(Serialize, Deserialize)] pub struct ProductAttributes {} diff --git a/broker_ipc/src/lib.rs b/broker_ipc/src/lib.rs index b43ff637c..872a96b8e 100644 --- a/broker_ipc/src/lib.rs +++ b/broker_ipc/src/lib.rs @@ -5,19 +5,28 @@ //! Contains shared code between the broker & its children, specifically any IPC messages or common //! bootstrapping code. +use std::fs::File; +use std::fs::OpenOptions; + use anyhow::Context; -use base::{enable_high_res_timers, syslog, FromRawDescriptor, IntoRawDescriptor, SafeDescriptor}; -use base::{EnabledHighResTimer, Tube}; -use serde::{Deserialize, Serialize}; -use std::fs::{File, OpenOptions}; +use base::enable_high_res_timers; +use base::syslog; +use base::EnabledHighResTimer; +use base::FromRawDescriptor; +use base::IntoRawDescriptor; +use base::SafeDescriptor; +use base::Tube; +use serde::Deserialize; +use serde::Serialize; mod generic; -use generic as product; - -use product::{init_child_crash_reporting, product_child_setup, ProductAttributes}; - use std::path::PathBuf; +use generic as product; +use product::init_child_crash_reporting; +use product::product_child_setup; +use product::ProductAttributes; + /// Arguments that are common to all devices & helper processes. #[derive(Serialize, Deserialize)] pub struct CommonChildStartupArgs { |