diff --git a/src/config/file_lines.rs b/src/config/file_lines.rs index 84ab0a8fc075..c5fd6eaa6236 100644 --- a/src/config/file_lines.rs +++ b/src/config/file_lines.rs @@ -403,9 +403,9 @@ mod test { vec![Range::new(1, 7)], ), ] - .iter() - .cloned() - .collect(); + .iter() + .cloned() + .collect(); let file_lines = FileLines::from_ranges(ranges); let mut spans = file_lines.to_json_spans(); diff --git a/tests/source/expr.rs b/tests/source/expr.rs index 7098d65f100b..71c792232217 100644 --- a/tests/source/expr.rs +++ b/tests/source/expr.rs @@ -450,3 +450,15 @@ fn issue_2802() { a: some_much_much_longer_value, }) * some_value } + +fn issue_3003() { + let mut path: PathBuf = [ + env!("CARGO_MANIFEST_DIR"), + "tests", + "support", + "dejavu-fonts-ttf-2.37", + "ttf", + ] + .iter() + .collect(); +} diff --git a/tests/target/expr.rs b/tests/target/expr.rs index 2e2312a11d50..2730b1c570c0 100644 --- a/tests/target/expr.rs +++ b/tests/target/expr.rs @@ -529,3 +529,15 @@ fn issue_2802() { }) * some_value } + +fn issue_3003() { + let mut path: PathBuf = [ + env!("CARGO_MANIFEST_DIR"), + "tests", + "support", + "dejavu-fonts-ttf-2.37", + "ttf", + ] + .iter() + .collect(); +}