@@ -12,8 +12,8 @@ pub use pg_diagnostics::category_concat;
1212use registry:: RegistryRuleParams ;
1313
1414pub use crate :: categories:: {
15- ActionCategory , RefactorKind , RuleCategories , RuleCategoriesBuilder , RuleCategory ,
16- SourceActionKind , SUPPRESSION_ACTION_CATEGORY ,
15+ ActionCategory , RefactorKind , RuleCategories , RuleCategory ,
16+ SourceActionKind , SUPPRESSION_ACTION_CATEGORY , RuleCategoriesBuilder
1717} ;
1818pub use crate :: filter:: { AnalysisFilter , GroupKey , RuleFilter , RuleKey } ;
1919pub use crate :: options:: { AnalyzerConfiguration , AnalyzerOptions , AnalyzerRules } ;
@@ -30,7 +30,7 @@ pub struct Analyzer<'analyzer> {
3030}
3131
3232pub struct AnalyzerContext < ' a > {
33- pub root : pg_query_ext:: NodeEnum ,
33+ pub root : & ' a pg_query_ext:: NodeEnum ,
3434 pub options : & ' a AnalyzerOptions ,
3535 pub registry : RuleRegistry ,
3636}
@@ -43,7 +43,7 @@ impl<'analyzer> Analyzer<'analyzer> {
4343
4444 pub fn run ( self , ctx : AnalyzerContext ) -> Vec < RuleDiagnostic > {
4545 let params = RegistryRuleParams {
46- root : & ctx. root ,
46+ root : ctx. root ,
4747 options : ctx. options ,
4848 } ;
4949
0 commit comments