clippy: Disallow lint `enum_variant_names`
We just need one exception.
This commit is contained in:
parent
ae55d935bc
commit
ffc81154e4
|
|
@ -85,7 +85,6 @@ git-ref-format-core = { version = "0.6.0", default-features = false }
|
||||||
radicle-surf = "0.27.1"
|
radicle-surf = "0.27.1"
|
||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
enum_variant_names = "allow"
|
|
||||||
fallible_impl_from = "deny"
|
fallible_impl_from = "deny"
|
||||||
fn_params_excessive_bools = "deny"
|
fn_params_excessive_bools = "deny"
|
||||||
indexing_slicing = "deny"
|
indexing_slicing = "deny"
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,7 @@ impl FromStr for ReviewAction {
|
||||||
/// A single review item. Can be a hunk or eg. a file move.
|
/// A single review item. Can be a hunk or eg. a file move.
|
||||||
/// Files are usually split into multiple review items.
|
/// Files are usually split into multiple review items.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[allow(clippy::enum_variant_names)]
|
||||||
pub enum ReviewItem {
|
pub enum ReviewItem {
|
||||||
FileAdded {
|
FileAdded {
|
||||||
path: PathBuf,
|
path: PathBuf,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue