Replace whitespaces in doctests' name with dashes

This commit is contained in:
Guillaume Gomez 2021-10-01 11:46:34 +02:00
parent 69c1c6a173
commit 3792be6ac9

View file

@ -853,6 +853,7 @@ impl Collector {
fn generate_name(&self, line: usize, filename: &FileName) -> String {
let mut item_path = self.names.join("::");
item_path.retain(|c| c != ' ');
if !item_path.is_empty() {
item_path.push(' ');
}