diff options
| author | xiongmao86 <xiongmao86dev@sina.com> | 2020-04-18 18:28:29 +0800 |
|---|---|---|
| committer | xiongmao86 <xiongmao86dev@sina.com> | 2020-04-18 18:28:29 +0800 |
| commit | cf4e35339b1d5a613588b45c53d0e88da5363c65 (patch) | |
| tree | 830fb97e01fb0a1e245aec7afd20494134881136 /clippy_lints/src/enum_variants.rs | |
| parent | d03d3bd95b06b82246a51aaa8e424a67eb724037 (diff) | |
| download | rust-cf4e35339b1d5a613588b45c53d0e88da5363c65.tar.gz rust-cf4e35339b1d5a613588b45c53d0e88da5363c65.zip | |
Add an Option<Span> argument to span_lint_and_help.
Diffstat (limited to 'clippy_lints/src/enum_variants.rs')
| -rw-r--r-- | clippy_lints/src/enum_variants.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/enum_variants.rs b/clippy_lints/src/enum_variants.rs index 882020a7adc..a5871cf0cd4 100644 --- a/clippy_lints/src/enum_variants.rs +++ b/clippy_lints/src/enum_variants.rs @@ -206,6 +206,7 @@ fn check_variant( lint, span, &format!("All variants have the same {}fix: `{}`", what, value), + None, &format!( "remove the {}fixes and use full paths to \ the variants instead of glob imports", |
