File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff 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
179179impl Renderer {
You can’t perform that action at this time.
0 commit comments