fmt: align the block comment continuations with the newer rustfmt
rustfmt on current stable enforces space-prefixed continuation lines in multi-line block comments, so the three /* */ comments in changelog.rs fail CI's cargo fmt --check (the local rustfmt 1.8 accepts both styles, which is why it slipped through). Comment-only change.
This commit is contained in:
1 parent
ecdc426c2c
commit
5c3808f083
1 file changed
+8
-8
+8
-8
@@ -458,9 +458,9 @@ pub fn parse_changelog_footer(path: &Path) -> Result<(String, String), Box<dyn s
|
||||
}
|
||||
|
||||
/*
|
||||
* Obtain all commit messages as a list since the previous release, to
|
||||
* format into a changelog entry
|
||||
*/
|
||||
* Obtain all commit messages as a list since the previous release, to
|
||||
* format into a changelog entry
|
||||
*/
|
||||
fn get_commits_since_version(
|
||||
repo: &Repository,
|
||||
version: &str,
|
||||
@@ -655,9 +655,9 @@ fn version_at_commit(
|
||||
}
|
||||
|
||||
/*
|
||||
* Create a changelog entry from information, i.e. format that information
|
||||
* into a changelog entry
|
||||
*/
|
||||
* Create a changelog entry from information, i.e. format that information
|
||||
* into a changelog entry
|
||||
*/
|
||||
fn format_entry(
|
||||
package: &str,
|
||||
version: &str,
|
||||
@@ -693,8 +693,8 @@ fn format_entry(
|
||||
}
|
||||
|
||||
/*
|
||||
* Add content to the beginning of a file
|
||||
*/
|
||||
* Add content to the beginning of a file
|
||||
*/
|
||||
fn prepend_to_file(path: &Path, content: &str) -> Result<(), Box<dyn std::error::Error>> {
|
||||
let mut file = File::open(path)?;
|
||||
let mut existing_content = String::new();
|
||||
|
||||
Reference in new issue
Block a user