File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -303,44 +303,44 @@ impl Styles {
303
303
impl Styles {
304
304
/// General Heading style, e.g. [`help_heading`][crate::Arg::help_heading]
305
305
#[ inline( always) ]
306
- pub const fn get_header ( & self ) -> anstyle:: Style {
307
- self . header
306
+ pub const fn get_header ( & self ) -> & anstyle:: Style {
307
+ & self . header
308
308
}
309
309
310
310
/// Error heading
311
311
#[ inline( always) ]
312
- pub const fn get_error ( & self ) -> anstyle:: Style {
313
- self . error
312
+ pub const fn get_error ( & self ) -> & anstyle:: Style {
313
+ & self . error
314
314
}
315
315
316
316
/// Usage heading
317
317
#[ inline( always) ]
318
- pub const fn get_usage ( & self ) -> anstyle:: Style {
319
- self . usage
318
+ pub const fn get_usage ( & self ) -> & anstyle:: Style {
319
+ & self . usage
320
320
}
321
321
322
322
/// Literal command-line syntax, e.g. `--help`
323
323
#[ inline( always) ]
324
- pub const fn get_literal ( & self ) -> anstyle:: Style {
325
- self . literal
324
+ pub const fn get_literal ( & self ) -> & anstyle:: Style {
325
+ & self . literal
326
326
}
327
327
328
328
/// Descriptions within command-line syntax, e.g. [`value_name`][crate::Arg::value_name]
329
329
#[ inline( always) ]
330
- pub const fn get_placeholder ( & self ) -> anstyle:: Style {
331
- self . placeholder
330
+ pub const fn get_placeholder ( & self ) -> & anstyle:: Style {
331
+ & self . placeholder
332
332
}
333
333
334
334
/// Highlight suggested usage
335
335
#[ inline( always) ]
336
- pub const fn get_valid ( & self ) -> anstyle:: Style {
337
- self . valid
336
+ pub const fn get_valid ( & self ) -> & anstyle:: Style {
337
+ & self . valid
338
338
}
339
339
340
340
/// Highlight invalid usage
341
341
#[ inline( always) ]
342
- pub const fn get_invalid ( & self ) -> anstyle:: Style {
343
- self . invalid
342
+ pub const fn get_invalid ( & self ) -> & anstyle:: Style {
343
+ & self . invalid
344
344
}
345
345
}
346
346
You can’t perform that action at this time.
0 commit comments