Skip to content

Commit

Permalink
chore: derive Encode and Decode in Tree (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
KennedyTedesco committed Feb 4, 2023
1 parent a71e841 commit 9801b35
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tree/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use std::any::{Any, TypeId};
use bincode::Decode;
use bincode::Encode;
use std::any::Any;
use std::any::TypeId;

use crate::tree::comment::CommentGroup;
use crate::tree::definition::DefinitionTree;
Expand All @@ -23,7 +26,7 @@ impl TreeMap {
}
}

#[derive(Debug)]
#[derive(Debug, Hash, Encode, Decode)]
pub struct Tree {
pub source: String,
pub definitions: DefinitionTree,
Expand Down

0 comments on commit 9801b35

Please sign in to comment.