Page MenuHomeDevCentral

D3017.diff
No OneTemporary

D3017.diff

diff --git a/src/actions.rs b/src/actions.rs
--- a/src/actions.rs
+++ b/src/actions.rs
@@ -42,12 +42,10 @@
DeployError::Alkane(error)
})?;
- let site = config
- .get_site(site_name, context)
- .ok_or_else(|| {
- let error = AlkaneDeployError::new("Can't resolve site path", site_name, action);
- DeployError::Alkane(error)
- })?;
+ let site = config.get_site(site_name, context).ok_or_else(|| {
+ let error = AlkaneDeployError::new("Can't resolve site path", site_name, action);
+ DeployError::Alkane(error)
+ })?;
let status = recipes.run_recipe(&site, action);
diff --git a/src/deploy.rs b/src/deploy.rs
--- a/src/deploy.rs
+++ b/src/deploy.rs
@@ -26,7 +26,11 @@
impl Display for AlkaneDeployError {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
- write!(f, "Can't run deployment action '{}' for site '{}': {}", self.action, self.site_name, self.message)
+ write!(
+ f,
+ "Can't run deployment action '{}' for site '{}': {}",
+ self.action, self.site_name, self.message
+ )
}
}
diff --git a/src/runner/mod.rs b/src/runner/mod.rs
--- a/src/runner/mod.rs
+++ b/src/runner/mod.rs
@@ -67,10 +67,7 @@
{
info!("Running command {} with args {:?}", command, args);
- let result = Command::new(command)
- .args(args)
- .envs(environment)
- .output();
+ let result = Command::new(command).args(args).envs(environment).output();
match result {
Ok(process_output) => {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 12:03 (12 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257926
Default Alt Text
D3017.diff (1 KB)

Event Timeline