fix(rust): apply Self usage in struct definition lint

This commit is contained in:
Will Lillis 2025-10-19 23:16:42 -04:00
parent e344837e35
commit 87d778a1c6
4 changed files with 20 additions and 20 deletions

View file

@ -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 {

View file

@ -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)]