add clone to type

This commit is contained in:
vms
2020-07-26 23:53:09 +03:00
parent 951f21f593
commit c0d2d9fab1
2 changed files with 3 additions and 4 deletions

View File

@ -8,7 +8,7 @@ use crate::{
use std::str;
/// Represents the kind of type.
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Debug, Clone)]
pub enum TypeKind {
/// A function type.
Function,
@ -18,7 +18,7 @@ pub enum TypeKind {
}
/// Represents a type.
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Debug, Clone)]
pub enum Type {
/// A function type, like:
///