Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 514796d

Browse files
committed
docs: De-prioritze testing logic
1 parent b2fa5eb commit 514796d

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

‎src/renderer/mod.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,24 +137,6 @@ impl Renderer {
137137
}
138138
}
139139

140-
/// Anonymize line numbers
141-
///
142-
/// When enabled, line numbers are replaced with `LL` which is useful for tests.
143-
///
144-
/// # Example
145-
///
146-
/// ```text
147-
/// --> $DIR/whitespace-trimming.rs:4:193
148-
/// |
149-
/// LL | ... let _: () = 42;
150-
/// | ^^ expected (), found integer
151-
/// |
152-
/// ```
153-
pub const fn anonymized_line_numbers(mut self, anonymized_line_numbers: bool) -> Self {
154-
self.anonymized_line_numbers = anonymized_line_numbers;
155-
self
156-
}
157-
158140
/// Abbreviate the message
159141
pub const fn short_message(mut self, short_message: bool) -> Self {
160142
self.short_message = short_message;
@@ -174,6 +156,24 @@ impl Renderer {
174156
self.decor_style = decor_style;
175157
self
176158
}
159+
160+
/// Anonymize line numbers
161+
///
162+
/// When enabled, line numbers are replaced with `LL` which is useful for tests.
163+
///
164+
/// # Example
165+
///
166+
/// ```text
167+
/// --> $DIR/whitespace-trimming.rs:4:193
168+
/// |
169+
/// LL | ... let _: () = 42;
170+
/// | ^^ expected (), found integer
171+
/// |
172+
/// ```
173+
pub const fn anonymized_line_numbers(mut self, anonymized_line_numbers: bool) -> Self {
174+
self.anonymized_line_numbers = anonymized_line_numbers;
175+
self
176+
}
177177
}
178178

179179
impl Renderer {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /