From 144a3fc426a80bd5becd5c528a32f5ef4bcf9dbc Mon Sep 17 00:00:00 2001 From: lyken Date: Tue, 25 Jun 2024 15:02:50 +0800 Subject: [PATCH] core: more derive Debug in typedef --- nac3core/src/typecheck/typedef/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nac3core/src/typecheck/typedef/mod.rs b/nac3core/src/typecheck/typedef/mod.rs index ae31168f6..fc6952fa2 100644 --- a/nac3core/src/typecheck/typedef/mod.rs +++ b/nac3core/src/typecheck/typedef/mod.rs @@ -82,14 +82,14 @@ pub struct Call { pub loc: Option, } -#[derive(Clone)] +#[derive(Debug, Clone)] pub struct FuncArg { pub name: StrRef, pub ty: Type, pub default_value: Option, } -#[derive(Clone)] +#[derive(Debug, Clone)] pub struct FunSignature { pub args: Vec, pub ret: Type, @@ -166,7 +166,7 @@ impl RecordField { } /// Category of variable and value types. -#[derive(Clone)] +#[derive(Debug, Clone)] pub enum TypeEnum { TRigidVar { id: TypeVarId,