Skip to content

Commit 55fc986

Browse files
committed
Fix tidy line length lint in stringify tests
1 parent ac43ba8 commit 55fc986

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/test/ui/macros/stringify.rs

+16-4
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ fn test_expr() {
243243
#![attr]
244244
}
245245
),
246-
"{\n #![attr]\n}",
246+
"{\n\
247+
\x20 #![attr]\n\
248+
}",
247249
);
248250

249251
// ExprKind::Async
@@ -498,7 +500,13 @@ fn test_item() {
498500
Struct { t: T },
499501
}
500502
),
501-
"enum Enum<T> where T: 'a {\n Unit,\n Tuple(T),\n Struct {\n t: T,\n },\n}",
503+
"enum Enum<T> where T: 'a {\n\
504+
\x20 Unit,\n\
505+
\x20 Tuple(T),\n\
506+
\x20 Struct {\n\
507+
\x20 t: T,\n\
508+
\x20 },\n\
509+
}",
502510
);
503511

504512
// ItemKind::Struct
@@ -535,7 +543,9 @@ fn test_item() {
535543
t: T,
536544
}
537545
),
538-
"struct Struct<T> where T: 'a {\n t: T,\n}",
546+
"struct Struct<T> where T: 'a {\n\
547+
\x20 t: T,\n\
548+
}",
539549
);
540550

541551
// ItemKind::Union
@@ -551,7 +561,9 @@ fn test_item() {
551561
t: T,
552562
}
553563
),
554-
"union Union<T> where T: 'a {\n t: T,\n}",
564+
"union Union<T> where T: 'a {\n\
565+
\x20 t: T,\n\
566+
}",
555567
);
556568

557569
// ItemKind::Trait

0 commit comments

Comments
 (0)