diff options
| author | sobolevn <mail@sobolevn.me> | 2024-08-18 19:40:56 +0300 |
|---|---|---|
| committer | sobolevn <mail@sobolevn.me> | 2024-08-18 19:40:56 +0300 |
| commit | 4e6fc6fa052d3278a5bf11ba805d292f5a5ecb4a (patch) | |
| tree | e581e624059251f727e194c06430f7bfe7b7ff61 /clippy_lints/src | |
| parent | bfe7f070bd79a9373ab58d0e2f64ef3400834b68 (diff) | |
| download | rust-4e6fc6fa052d3278a5bf11ba805d292f5a5ecb4a.tar.gz rust-4e6fc6fa052d3278a5bf11ba805d292f5a5ecb4a.zip | |
Improve `collapsible_match` error message syntax
Diffstat (limited to 'clippy_lints/src')
| -rw-r--r-- | clippy_lints/src/matches/collapsible_match.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/matches/collapsible_match.rs b/clippy_lints/src/matches/collapsible_match.rs index 90cfdecc199..b666e77c09e 100644 --- a/clippy_lints/src/matches/collapsible_match.rs +++ b/clippy_lints/src/matches/collapsible_match.rs @@ -96,7 +96,7 @@ fn check_arm<'tcx>( // collapsing patterns need an explicit field name in struct pattern matching // ex: Struct {x: Some(1)} let replace_msg = if is_innermost_parent_pat_struct { - format!(", prefixed by {}:", snippet(cx, binding_span, "their field name")) + format!(", prefixed by `{}`:", snippet(cx, binding_span, "their field name")) } else { String::new() }; |
