Skip to content

Commit bf2abae

Browse files
[autofix.ci] apply automated fixes
1 parent 2dd7623 commit bf2abae

File tree

3 files changed

+6
-22
lines changed

3 files changed

+6
-22
lines changed

crates/gh-workflow-tailcall/src/standard.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,25 +170,25 @@ impl StandardWorkflow {
170170
"target".into(),
171171
]),
172172
);
173-
173+
174174
// Add cargo fmt step
175175
if auto_fix {
176176
job = job.add_step(
177177
Cargo::new("fmt")
178178
.name("Cargo Fmt")
179179
.nightly()
180-
.add_args("--all")
180+
.add_args("--all"),
181181
);
182182
} else {
183183
job = job.add_step(
184184
Cargo::new("fmt")
185185
.name("Cargo Fmt")
186186
.nightly()
187187
.add_args("--all")
188-
.add_args("--check")
188+
.add_args("--check"),
189189
);
190190
}
191-
191+
192192
// Add cargo clippy step
193193
if auto_fix {
194194
job = job.add_step(
@@ -197,14 +197,14 @@ impl StandardWorkflow {
197197
.nightly()
198198
.add_args("--fix")
199199
.add_args("--allow-dirty")
200-
.add_args("--all-features --workspace -- -D warnings")
200+
.add_args("--all-features --workspace -- -D warnings"),
201201
);
202202
} else {
203203
job = job.add_step(
204204
Cargo::new("clippy")
205205
.name("Cargo Clippy")
206206
.nightly()
207-
.add_args("--all-features --workspace -- -D warnings")
207+
.add_args("--all-features --workspace -- -D warnings"),
208208
);
209209
}
210210

crates/gh-workflow/src/cargo.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ impl Cargo {
5858
);
5959
self
6060
}
61-
62-
6361
}
6462

6563
impl From<Cargo> for Step<Run> {

crates/gh-workflow/src/workflow.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ impl Workflow {
114114
Ok(serde_yaml::to_string(self)?)
115115
}
116116

117-
118-
119117
/// Adds a job to the workflow with the specified ID and job configuration.
120118
pub fn add_job<T: ToString, J: Into<Job>>(mut self, id: T, job: J) -> Self {
121119
let key = id.to_string();
@@ -148,8 +146,6 @@ impl Workflow {
148146
self
149147
}
150148

151-
152-
153149
/// Adds an environment variable to the workflow.
154150
pub fn add_env<T: Into<Env>>(mut self, new_env: T) -> Self {
155151
let mut env = self.env.unwrap_or_default();
@@ -159,8 +155,6 @@ impl Workflow {
159155
self
160156
}
161157

162-
163-
164158
/// Performs a reverse lookup to get the ID of a job.
165159
pub fn get_id(&self, job: &Job) -> Option<&str> {
166160
self.jobs
@@ -256,8 +250,6 @@ impl Job {
256250
}
257251
}
258252

259-
260-
261253
/// Adds a step to the job.
262254
pub fn add_step<S: Into<Step<T>>, T: StepType>(mut self, step: S) -> Self {
263255
let mut steps = self.steps.unwrap_or_default();
@@ -277,8 +269,6 @@ impl Job {
277269
self
278270
}
279271

280-
281-
282272
/// Add multiple steps to the job at once.
283273
///
284274
/// This is a convenience method that takes a vector of steps and adds them
@@ -297,8 +287,6 @@ impl Job {
297287
self.tmp_needs = Some(needs);
298288
self
299289
}
300-
301-
302290
}
303291

304292
/// Represents a step in the workflow.
@@ -560,8 +548,6 @@ impl Step<Use> {
560548

561549
self
562550
}
563-
564-
565551
}
566552

567553
/// Represents a key-value pair for inputs.

0 commit comments

Comments
 (0)