Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3767900
D3017.id7699.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3017.id7699.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 04:07 (20 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257926
Default Alt Text
D3017.id7699.diff (1 KB)
Attached To
Mode
D3017: Format Rust in cargo fmt codestyle
Attached
Detach File
Event Timeline
Log In to Comment