@@ -54,27 +54,27 @@ impl PcSaftFunctional {
5454 ) && parameters. m . len ( ) == 1
5555 {
5656 let fmt_assoc = PureFMTAssocFunctional :: new ( parameters. clone ( ) , fmt_version) ;
57- contributions. push ( Box :: new ( fmt_assoc. clone ( ) ) ) ;
57+ contributions. push ( Box :: new ( fmt_assoc) ) ;
5858 if parameters. m . iter ( ) . any ( |& mi| mi > 1.0 ) {
5959 let chain = PureChainFunctional :: new ( parameters. clone ( ) ) ;
60- contributions. push ( Box :: new ( chain. clone ( ) ) ) ;
60+ contributions. push ( Box :: new ( chain) ) ;
6161 }
6262 let att = PureAttFunctional :: new ( parameters. clone ( ) ) ;
63- contributions. push ( Box :: new ( att. clone ( ) ) ) ;
63+ contributions. push ( Box :: new ( att) ) ;
6464 } else {
6565 // Hard sphere contribution
6666 let hs = FMTContribution :: new ( & parameters, fmt_version) ;
67- contributions. push ( Box :: new ( hs. clone ( ) ) ) ;
67+ contributions. push ( Box :: new ( hs) ) ;
6868
6969 // Hard chains
7070 if parameters. m . iter ( ) . any ( |& mi| !mi. is_one ( ) ) {
7171 let chain = ChainFunctional :: new ( parameters. clone ( ) ) ;
72- contributions. push ( Box :: new ( chain. clone ( ) ) ) ;
72+ contributions. push ( Box :: new ( chain) ) ;
7373 }
7474
7575 // Dispersion
7676 let att = AttractiveFunctional :: new ( parameters. clone ( ) ) ;
77- contributions. push ( Box :: new ( att. clone ( ) ) ) ;
77+ contributions. push ( Box :: new ( att) ) ;
7878
7979 // Association
8080 if parameters. nassoc > 0 {
@@ -83,7 +83,7 @@ impl PcSaftFunctional {
8383 saft_options. max_iter_cross_assoc ,
8484 saft_options. tol_cross_assoc ,
8585 ) ;
86- contributions. push ( Box :: new ( assoc. clone ( ) ) ) ;
86+ contributions. push ( Box :: new ( assoc) ) ;
8787 }
8888 }
8989
@@ -93,7 +93,7 @@ impl PcSaftFunctional {
9393 } ;
9494
9595 ( Self {
96- parameters : parameters . clone ( ) ,
96+ parameters,
9797 fmt_version,
9898 options : saft_options,
9999 contributions,
0 commit comments