diff --git a/src/protocol/ast.rs b/src/protocol/ast.rs index f5b019aa858831cd425d5702b0db9156beff0e62..e25a4c6096979e401e406744b0c72680eb815cb4 100644 --- a/src/protocol/ast.rs +++ b/src/protocol/ast.rs @@ -396,7 +396,7 @@ impl ParserTypeVariant { 0, ArrayLike | InputOrOutput | Array | Input | Output => 1, - Definition(_, num) => *num, + Definition(_, num) => *num as usize, } } } @@ -515,16 +515,6 @@ impl Default for ConcreteType { } } -impl ConcreteType { - pub(crate) fn has_marker(&self) -> bool { - self.parts - .iter() - .any(|p| { - if let ConcreteTypePart::Marker(_) = p { true } else { false } - }) - } -} - // TODO: Remove at some point #[derive(Debug, Clone, PartialEq, Eq)] pub enum PrimitiveType {