mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
clippy: Disallow lint enum_variant_names
We just need one exception.
This commit is contained in:
@@ -85,7 +85,6 @@ git-ref-format-core = { version = "0.6.0", default-features = false }
|
||||
radicle-surf = "0.27.1"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
enum_variant_names = "allow"
|
||||
fallible_impl_from = "deny"
|
||||
fn_params_excessive_bools = "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.
|
||||
/// Files are usually split into multiple review items.
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::enum_variant_names)]
|
||||
pub enum ReviewItem {
|
||||
FileAdded {
|
||||
path: PathBuf,
|
||||
|
||||
Reference in New Issue
Block a user