Skip to content

Commit

Permalink
undo changes to association
Browse files Browse the repository at this point in the history
  • Loading branch information
prehner committed Apr 22, 2024
1 parent 8588261 commit bbb735d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/association/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct AssociationSite<A> {
parameters: A,
}

impl<A: Clone + Default> AssociationSite<A> {
impl<A> AssociationSite<A> {
fn new(assoc_comp: usize, site_index: usize, n: f64, parameters: A) -> Self {
Self {
assoc_comp,
Expand Down Expand Up @@ -52,7 +52,7 @@ pub struct AssociationRecord<A> {
pub nc: f64,
}

impl<A: Clone + Default> AssociationRecord<A> {
impl<A> AssociationRecord<A> {
pub fn new(parameters: A, na: f64, nb: f64, nc: f64) -> Self {
Self {
parameters,
Expand Down Expand Up @@ -235,7 +235,7 @@ impl<P: AssociationStrength> Association<P> {
}

pub trait AssociationStrength: HardSphereProperties {
type Record: Copy + Default;
type Record: Copy;
type BinaryRecord: Copy;

fn association_strength<D: DualNum<f64> + Copy>(
Expand Down

0 comments on commit bbb735d

Please sign in to comment.