Skip to content

Commit e031f1c

Browse files
jonatasclaude
authored andcommitted
style: Fix rustfmt formatting in config and output tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 47c032a commit e031f1c

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/config.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,10 @@ warn_checks = ["TruncateTableCheck", "DropTableCheck"]
558558
.unwrap();
559559
assert_eq!(
560560
config.warn_checks,
561-
vec!["TruncateTableCheck".to_string(), "DropTableCheck".to_string()]
561+
vec![
562+
"TruncateTableCheck".to_string(),
563+
"DropTableCheck".to_string()
564+
]
562565
);
563566
}
564567

tests/output_test.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,20 @@ fn test_format_summary_with_errors() {
152152
fn test_format_summary_with_warnings_only() {
153153
colored::control::set_override(false);
154154
let output = OutputFormatter::format_summary(0, 2);
155-
assert_eq!(output, "
156-
⚠️ 2 migration warning(s) detected (not blocking)");
155+
assert_eq!(
156+
output,
157+
"
158+
⚠️ 2 migration warning(s) detected (not blocking)"
159+
);
157160
}
158161

159162
#[test]
160163
fn test_format_summary_with_errors_and_warnings() {
161164
colored::control::set_override(false);
162165
let output = OutputFormatter::format_summary(1, 2);
163-
assert_eq!(output, "
164-
❌ 1 unsafe migration(s) and 2 warning(s) detected");
166+
assert_eq!(
167+
output,
168+
"
169+
❌ 1 unsafe migration(s) and 2 warning(s) detected"
170+
);
165171
}

0 commit comments

Comments
 (0)