Skip to content

Commit 9ea3503

Browse files
committed
Fix some minor formatting issues.
1 parent f03d47c commit 9ea3503

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/bin/cargo/commands/describe_future_incompatibilities.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
4444
let id = args.value_of("id").unwrap();
4545
if id != on_disk_report.id {
4646
return Err(anyhow!(
47-
"Expected an id of `{}`, but `{}` was provided on the command line.\
48-
Your report may have been overwritten by a different one.",
47+
"Expected an id of `{}`, but `{}` was provided on the command line. \
48+
Your report may have been overwritten by a different one.",
4949
on_disk_report.id,
5050
id
5151
)

tests/testsuite/future_incompat_report.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/// Tests for future-incompat-report messages
1+
//! Tests for future-incompat-report messages
2+
23
use cargo_test_support::registry::Package;
34
use cargo_test_support::{basic_manifest, is_nightly, project};
45

@@ -139,7 +140,7 @@ fn test_multi_crate() {
139140
.unwrap();
140141

141142
// Extract the 'id' from the stdout. We are looking
142-
// for the id in a line of the form "run `cargo describe-future-incompatibilities --id 721d0666-81b6-4765-84fc-fd2832328324`"
143+
// for the id in a line of the form "run `cargo describe-future-incompatibilities --id yZ7S`"
143144
// which is generated by Cargo to tell the user what command to run
144145
// This is just to test that passing the id suppresses the warning mesasge. Any users needing
145146
// access to the report from a shell script should use the `--future-incompat-report` flag

0 commit comments

Comments
 (0)