Skip to content

Commit 7ffba67

Browse files
committed
Run fmt
1 parent 5c3b380 commit 7ffba67

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/cargo/core/compiler/future_incompat.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ fn render_report(per_package_reports: &[FutureIncompatReportPackage]) -> BTreeMa
239239
);
240240
let rendered = report.entry(package_spec).or_default();
241241
rendered.push_str(&format!(
242-
"The package `{}` currently triggers the following future incompatibility lints:\n",
242+
"The package `{}` currently triggers the following future incompatibility lints:\n",
243243
per_package.package_id
244244
));
245245
for item in &per_package.items {
@@ -359,7 +359,6 @@ pub fn save_and_display_report(
359359
};
360360
let report_id = current_reports.next_id;
361361

362-
363362
// Get a list of unique and sorted package name/versions.
364363
let package_ids: BTreeSet<_> = per_package_future_incompat_reports
365364
.iter()
@@ -409,10 +408,10 @@ You may want to consider updating them to a newer version to see if the issue ha
409408
)
410409
})
411410
.collect::<Vec<_>>()
412-
.join("\n");
411+
.join("\n");
413412

414413
let suggestion_message = format!(
415-
"
414+
"
416415
To solve this problem, you can try the following approaches:
417416
418417
{update_message}
@@ -427,11 +426,10 @@ section in `Cargo.toml` to use your own version of the dependency. For more
427426
information, see:
428427
https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section
429428
",
430-
upstream_info = upstream_info,
431-
update_message = update_message,
429+
upstream_info = upstream_info,
430+
update_message = update_message,
432431
);
433432

434-
435433
current_reports.save_report(
436434
bcx.ws,
437435
suggestion_message.clone(),

src/cargo/core/compiler/job_queue.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,10 @@ impl<'cfg> DrainState<'cfg> {
871871
if !cx.bcx.build_config.build_plan {
872872
// It doesn't really matter if this fails.
873873
drop(cx.bcx.config.shell().status("Finished", message));
874-
future_incompat::save_and_display_report(cx.bcx, &self.per_package_future_incompat_reports);
874+
future_incompat::save_and_display_report(
875+
cx.bcx,
876+
&self.per_package_future_incompat_reports,
877+
);
875878
}
876879

877880
None

0 commit comments

Comments
 (0)