Replace whitespaces in doctests' name with dashes
This commit is contained in:
parent
69c1c6a173
commit
3792be6ac9
1 changed files with 1 additions and 0 deletions
|
@ -853,6 +853,7 @@ impl Collector {
|
||||||
|
|
||||||
fn generate_name(&self, line: usize, filename: &FileName) -> String {
|
fn generate_name(&self, line: usize, filename: &FileName) -> String {
|
||||||
let mut item_path = self.names.join("::");
|
let mut item_path = self.names.join("::");
|
||||||
|
item_path.retain(|c| c != ' ');
|
||||||
if !item_path.is_empty() {
|
if !item_path.is_empty() {
|
||||||
item_path.push(' ');
|
item_path.push(' ');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue