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
|
* Obtain all commit messages as a list since the previous release, to
|
||||||
* format into a changelog entry
|
* format into a changelog entry
|
||||||
*/
|
*/
|
||||||
fn get_commits_since_version(
|
fn get_commits_since_version(
|
||||||
repo: &Repository,
|
repo: &Repository,
|
||||||
version: &str,
|
version: &str,
|
||||||
@@ -655,9 +655,9 @@ fn version_at_commit(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create a changelog entry from information, i.e. format that information
|
* Create a changelog entry from information, i.e. format that information
|
||||||
* into a changelog entry
|
* into a changelog entry
|
||||||
*/
|
*/
|
||||||
fn format_entry(
|
fn format_entry(
|
||||||
package: &str,
|
package: &str,
|
||||||
version: &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>> {
|
fn prepend_to_file(path: &Path, content: &str) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let mut file = File::open(path)?;
|
let mut file = File::open(path)?;
|
||||||
let mut existing_content = String::new();
|
let mut existing_content = String::new();
|
||||||
|
|||||||
Reference in new issue
Block a user