fix(rust): apply Self usage in struct definition lint
This commit is contained in:
parent
e344837e35
commit
87d778a1c6
4 changed files with 20 additions and 20 deletions
|
|
@ -65,7 +65,7 @@ static POINT_REGEX: LazyLock<Regex> =
|
|||
pub enum TestEntry {
|
||||
Group {
|
||||
name: String,
|
||||
children: Vec<TestEntry>,
|
||||
children: Vec<Self>,
|
||||
file_path: Option<PathBuf>,
|
||||
},
|
||||
Example {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ pub struct Pattern {
|
|||
named: bool,
|
||||
field: Option<&'static str>,
|
||||
capture: Option<String>,
|
||||
children: Vec<Pattern>,
|
||||
children: Vec<Self>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue