Skip to content

Commit

Permalink
Add missing Debug and Default traits
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Jan 16, 2023
1 parent 0dbff7f commit 09a0736
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions butane_core/src/fkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use std::fmt::{Debug, Formatter};
/// ...
/// }
///
#[derive(Default)]
pub struct ForeignKey<T>
where
T: DataObject,
Expand Down
3 changes: 2 additions & 1 deletion butane_core/src/many.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn default_oc<T>() -> OnceCell<Vec<T>> {
/// U::PKType. Table name is T_ManyToMany_foo where foo is the name of
/// the Many field
//
#[derive(Debug, Serialize, Deserialize)]
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Many<T>
where
T: DataObject,
Expand Down Expand Up @@ -153,6 +153,7 @@ where
});
vals.map(|v| v.iter())
}

pub fn columns(&self) -> [Column; 2] {
[
Column::new("owner", self.owner_type.clone()),
Expand Down

0 comments on commit 09a0736

Please sign in to comment.