From b4ed8a62fe76a02911e987c884da5b213e5168f7 Mon Sep 17 00:00:00 2001 From: Danilo Guanabara Date: Fri, 24 Nov 2023 18:09:44 -0300 Subject: [PATCH] Removing unimplemented Visitor usage --- ecosystem/python/parser/src/types/type_/validator.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ecosystem/python/parser/src/types/type_/validator.rs b/ecosystem/python/parser/src/types/type_/validator.rs index 2e65452f..43d6860d 100644 --- a/ecosystem/python/parser/src/types/type_/validator.rs +++ b/ecosystem/python/parser/src/types/type_/validator.rs @@ -1,5 +1,4 @@ use crate::prelude::*; -use is_tree::Visitor; use ligen::{ir::{Type, Path}, parser::{ParserConfig, ParserConfigGet, Validator}}; #[derive(Default)] @@ -13,7 +12,7 @@ impl TypeValidator { impl Validator for TypeValidator { type Input = Type; - fn validate(&self, type_: &mut Visitor, config: &ParserConfig) -> Result<()> { + fn validate(&self, type_: &mut Type, config: &ParserConfig) -> Result<()> { let name = type_.path.last().identifier.name.as_str(); if config.get(Path::from("ligen::python::as-opaque").join(name)).is_some() { println!("{}", type_.path);