Skip to content

Commit b056f2a

Browse files
committed
style: apply rustfmt formatting to template renderers
- Format multi-line string format expressions consistently - Break long format! calls into multiple lines for readability Automatic formatting applied by rustfmt with new Rust version
1 parent 22ef8ae commit b056f2a

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/infrastructure/templating/ansible/template/renderer/variables.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,11 @@ impl VariablesRenderer {
195195
///
196196
/// * `String` - The complete template path for variables.yml.tera
197197
fn build_template_path() -> String {
198-
format!("{}/{}", Self::ANSIBLE_TEMPLATE_DIR, Self::VARIABLES_TEMPLATE_FILE)
198+
format!(
199+
"{}/{}",
200+
Self::ANSIBLE_TEMPLATE_DIR,
201+
Self::VARIABLES_TEMPLATE_FILE
202+
)
199203
}
200204
}
201205

src/infrastructure/templating/docker_compose/template/renderer/env.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,11 @@ impl EnvRenderer {
194194
///
195195
/// * `String` - The complete template path for env.tera
196196
fn build_template_path() -> String {
197-
format!("{}/{}", Self::DOCKER_COMPOSE_TEMPLATE_DIR, Self::ENV_TEMPLATE_FILE)
197+
format!(
198+
"{}/{}",
199+
Self::DOCKER_COMPOSE_TEMPLATE_DIR,
200+
Self::ENV_TEMPLATE_FILE
201+
)
198202
}
199203
}
200204

src/infrastructure/templating/tracker/template/renderer/tracker_config.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ impl TrackerConfigRenderer {
9898
output_dir: &Path,
9999
) -> Result<(), TrackerConfigRendererError> {
100100
// 1. Load template from template manager
101-
let template_path = self
102-
.template_manager
103-
.get_template_path(&format!("{}/{}", Self::TRACKER_TEMPLATE_DIR, Self::TRACKER_TEMPLATE_FILE))?;
101+
let template_path = self.template_manager.get_template_path(&format!(
102+
"{}/{}",
103+
Self::TRACKER_TEMPLATE_DIR,
104+
Self::TRACKER_TEMPLATE_FILE
105+
))?;
104106

105107
// 2. Read template content
106108
let template_content = std::fs::read_to_string(&template_path).map_err(|source| {

0 commit comments

Comments
 (0)