Skip to content

Commit 4a15875

Browse files
committed
Add a test for rust-lang#3003
and run cargo fmt.
1 parent 4c1b0c2 commit 4a15875

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

src/config/file_lines.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,9 @@ mod test {
403403
vec![Range::new(1, 7)],
404404
),
405405
]
406-
.iter()
407-
.cloned()
408-
.collect();
406+
.iter()
407+
.cloned()
408+
.collect();
409409

410410
let file_lines = FileLines::from_ranges(ranges);
411411
let mut spans = file_lines.to_json_spans();

tests/source/expr.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,3 +450,15 @@ fn issue_2802() {
450450
a: some_much_much_longer_value,
451451
}) * some_value
452452
}
453+
454+
fn issue_3003() {
455+
let mut path: PathBuf = [
456+
env!("CARGO_MANIFEST_DIR"),
457+
"tests",
458+
"support",
459+
"dejavu-fonts-ttf-2.37",
460+
"ttf",
461+
]
462+
.iter()
463+
.collect();
464+
}

tests/target/expr.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,3 +529,15 @@ fn issue_2802() {
529529
})
530530
* some_value
531531
}
532+
533+
fn issue_3003() {
534+
let mut path: PathBuf = [
535+
env!("CARGO_MANIFEST_DIR"),
536+
"tests",
537+
"support",
538+
"dejavu-fonts-ttf-2.37",
539+
"ttf",
540+
]
541+
.iter()
542+
.collect();
543+
}

0 commit comments

Comments
 (0)