Skip to content

Commit 525e616

Browse files
committed
Eliminate HRTB on GAT to make cargo build succeed succeed
1 parent aa471b3 commit 525e616

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/algorithm/two_phase/phase_two.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ use crate::algorithm::two_phase::tableau::kind::non_artificial::NonArtificial;
1919
///
2020
/// An `OptimizationResult` indicating whether or not the problem has a finite optimum. It cannot be
2121
/// infeasible, as a feasible solution is needed to start using this method.
22-
pub fn primal<IM, MP, PR>(
23-
tableau: &mut Tableau<IM, NonArtificial<MP>>,
22+
pub fn primal<'provider, IM, MP, PR>(
23+
tableau: &mut Tableau<IM, NonArtificial<'provider, MP>>,
2424
) -> OptimizationResult<IM::F>
2525
where
26-
IM: InverseMaintener<F: im_ops::FieldHR + im_ops::Column<<MP::Column as Column>::F>>,
27-
for<'r> IM::F: im_ops::Cost<MP::Cost<'r>>,
26+
IM: InverseMaintener<F:
27+
im_ops::FieldHR +
28+
im_ops::Column<<MP::Column as Column>::F> +
29+
im_ops::Cost<MP::Cost<'provider>> +
30+
>,
2831
MP: MatrixProvider,
2932
PR: PivotRule<IM::F>,
3033
{

0 commit comments

Comments
 (0)