Skip to content

Commit

Permalink
add Hash, Eq requirements for TabledData<T> Debug instance
Browse files Browse the repository at this point in the history
  • Loading branch information
mthom committed Apr 26, 2020
1 parent a793a82 commit 420cf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tabled_rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct TabledData<T> {
pub(crate) module_name: Rc<String>
}

impl<T: fmt::Debug> fmt::Debug for TabledData<T> {
impl<T: Hash + Eq + fmt::Debug> fmt::Debug for TabledData<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("TabledData")
.field("table", &self.table)
Expand Down

0 comments on commit 420cf1b

Please sign in to comment.