diff --git a/src/ast.rs b/src/ast.rs index 71e0bbe..616ab90 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -70,13 +70,7 @@ pub enum ASTNodeKind { Enum(Enum), Impl(Impl), Trait(Trait), - Use(Use), -} - -#[derive(Debug, Clone)] -pub struct Use { - pub path: String, - pub span: Span, + Use(String), } // ? implies OPTIONAL here @@ -311,7 +305,7 @@ pub enum TypedASTNodeKind { Enum(TypedEnum), Impl(TypedImpl), Trait(TypedTrait), - Use(Use), + Use(String), } #[derive(Debug, Clone)]