Skip to content

Commit bed327a

Browse files
committed
Rustfmt
1 parent 021e2c3 commit bed327a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

ui_test/src/comments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl Comments {
3838
let content = std::fs::read_to_string(path).unwrap();
3939
Self::parse(path, &content)
4040
}
41-
41+
4242
pub fn parse(path: &Path, content: &str) -> Self {
4343
let mut this = Self::default();
4444
let error_pattern_regex =

ui_test/tests/check_annotations.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::path::{Path, PathBuf};
22

3-
use ui_test::{Comments, check_annotations, Config, Mode, OutputConflictHandling, Error};
3+
use ui_test::{check_annotations, Comments, Config, Error, Mode, OutputConflictHandling};
44

55
fn config() -> Config {
66
Config {
@@ -43,7 +43,7 @@ error: aborting due to previous error
4343
";
4444
check_annotations(unnormalized_stderr.as_bytes(), &mut errors, &config, "", &comments);
4545
match &errors[..] {
46-
[Error::PatternNotFound { .. }] => {},
46+
[Error::PatternNotFound { .. }] => {}
4747
_ => panic!("{:#?}", errors),
4848
}
4949
}

ui_test/tests/comment_parser.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ fn main() {
1515
println!("{:#?}", comments);
1616
assert_eq!(comments.error_matches[0].definition_line, 4);
1717
assert_eq!(comments.error_matches[0].revision, None);
18-
assert_eq!(comments.error_matches[0].matched, "encountered a dangling reference (address $HEX is unallocated)");
18+
assert_eq!(
19+
comments.error_matches[0].matched,
20+
"encountered a dangling reference (address $HEX is unallocated)"
21+
);
1922
}

0 commit comments

Comments
 (0)