Fix clippy warnings

integration-not-installation
trivernis 2 years ago
parent fd97b535df
commit 30a88572b7
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -58,7 +58,7 @@ impl TaskExecutor {
/// Installs the system from the given system configuration /// Installs the system from the given system configuration
#[tracing::instrument(level = "trace", skip(self))] #[tracing::instrument(level = "trace", skip(self))]
pub async fn install_from_config(&self) -> AppResult<()> { pub async fn install_from_config(&self) -> AppResult<()> {
let config = self.config.clone().ok_or_else(|| AppError::MissingConfig)?; let config = self.config.clone().ok_or(AppError::MissingConfig)?;
self.create_partitions(config.partitions).await?; self.create_partitions(config.partitions).await?;
self.install_base(()).await?; self.install_base(()).await?;
self.install_kernels(config.kernels).await?; self.install_kernels(config.kernels).await?;

@ -55,16 +55,13 @@ impl TaskFiles {
macro_rules! __all_tasks { macro_rules! __all_tasks {
($($task:ident),+) => { ($($task:ident),+) => {
{ {
let mut list = Vec::new(); vec![$(
$( TaskFiles {
list.push(TaskFiles {
script: $task::get_name().into(), script: $task::get_name().into(),
pre_hook: $task::get_pre_hook().into(), pre_hook: $task::get_pre_hook().into(),
post_hook: $task::get_post_hook().into(), post_hook: $task::get_post_hook().into(),
}); },
)+ )+]
list
} }
}; };
} }

Loading…
Cancel
Save