mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: treewide: fmt for edition 2024
`cargo +nightly fmt` Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Bo Chen
parent
061351d82d
commit
363273111a
@@ -13,8 +13,8 @@ use std::os::unix::net::UnixStream;
|
||||
use std::process;
|
||||
|
||||
use api_client::{
|
||||
simple_api_command, simple_api_command_with_fds, simple_api_full_command,
|
||||
Error as ApiClientError,
|
||||
Error as ApiClientError, simple_api_command, simple_api_command_with_fds,
|
||||
simple_api_full_command,
|
||||
};
|
||||
use clap::{Arg, ArgAction, ArgMatches, Command};
|
||||
use log::error;
|
||||
@@ -1128,7 +1128,9 @@ fn main() {
|
||||
process::exit(1);
|
||||
}
|
||||
_ => {
|
||||
error!("Please either provide the api-socket option or dbus-service-name and dbus-object-path options");
|
||||
error!(
|
||||
"Please either provide the api-socket option or dbus-service-name and dbus-object-path options"
|
||||
);
|
||||
process::exit(1);
|
||||
}
|
||||
};
|
||||
|
||||
10
src/main.rs
10
src/main.rs
@@ -8,22 +8,22 @@ mod test_util;
|
||||
|
||||
use std::fs::File;
|
||||
use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
|
||||
use std::sync::mpsc::channel;
|
||||
use std::sync::Mutex;
|
||||
use std::sync::mpsc::channel;
|
||||
use std::{env, io};
|
||||
|
||||
use clap::{Arg, ArgAction, ArgGroup, ArgMatches, Command};
|
||||
use event_monitor::event;
|
||||
use libc::EFD_NONBLOCK;
|
||||
use log::{error, warn, LevelFilter};
|
||||
use log::{LevelFilter, error, warn};
|
||||
use option_parser::OptionParser;
|
||||
use seccompiler::SeccompAction;
|
||||
use signal_hook::consts::SIGSYS;
|
||||
use thiserror::Error;
|
||||
#[cfg(feature = "dbus_api")]
|
||||
use vmm::api::dbus::{dbus_api_graceful_shutdown, DBusApiOptions};
|
||||
use vmm::api::http::http_api_graceful_shutdown;
|
||||
use vmm::api::ApiAction;
|
||||
#[cfg(feature = "dbus_api")]
|
||||
use vmm::api::dbus::{DBusApiOptions, dbus_api_graceful_shutdown};
|
||||
use vmm::api::http::http_api_graceful_shutdown;
|
||||
use vmm::config::{RestoreConfig, VmParams};
|
||||
use vmm::landlock::{Landlock, LandlockError};
|
||||
use vmm::vm_config;
|
||||
|
||||
Reference in New Issue
Block a user