Skip to content

Commit

Permalink
Removing unimplemented Visitor usage
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Nov 24, 2023
1 parent e97a261 commit b4ed8a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ecosystem/python/parser/src/types/type_/validator.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::prelude::*;
use is_tree::Visitor;
use ligen::{ir::{Type, Path}, parser::{ParserConfig, ParserConfigGet, Validator}};

#[derive(Default)]
Expand All @@ -13,7 +12,7 @@ impl TypeValidator {

impl Validator for TypeValidator {
type Input = Type;
fn validate(&self, type_: &mut Visitor<Type>, 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);
Expand Down

0 comments on commit b4ed8a6

Please sign in to comment.