Skip to content

Commit 733e775

Browse files
committed
formatted error and description messages
1 parent 5426f01 commit 733e775

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/lints/pub_api_sealed_trait_became_unsealed.ron

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
SemverQuery(
22
id: "pub_api_sealed_trait_became_unsealed",
33
human_readable_name: "Sealed trait in the public API became unsealed",
4-
description: "A trait in the public API that was previously sealed is now unsealed, allowing downstream crates to implement it.
5-
This could be risky: if this change needs to be reverted, it would be a breaking change, as downstream crates may already depend on their implementations of this trait.
6-
Review this change carefully to avoid unintentionally breaking compatibility in the future",
4+
description: "An public API sealed trait is now unsealed, allowing downstream crates to implement it. Reverting this in the future would be a breaking change",
75
required_update: Minor,
86
lint_level: Warn,
97
reference_link: Some("https://rust-lang.github.io/api-guidelines/future-proofing.html#sealed-traits-protect-against-downstream-implementations-c-sealed"),
@@ -50,9 +48,7 @@ SemverQuery(
5048
"public": "public",
5149
"true": true,
5250
},
53-
error_message: "A sealed trait in the public api has become unsealed, allowing external crates to implement it.
54-
If you later need to re-seal this trait, it will be a breaking change.
55-
Consider whether this change is intentional and whether it aligns with your stability guarantees",
51+
error_message: "An public API sealed trait is now unsealed, allowing downstream crates to implement it. Resealing this later would be a breaking change.",
5652
per_result_error_template: Some("trait {{join \"::\" path}} in file {{span_filename}}:{{span_begin_line}}"),
5753
witness: None,
5854
)

0 commit comments

Comments
 (0)