Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mmghannam committed Apr 7, 2024
1 parent b93f07b commit 9fb02bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/solution.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::fmt;
use std::rc::Rc;

use crate::scip::ScipPtr;
use crate::variable::Variable;
use crate::{ffi, scip_call_panic};
use crate::scip::ScipPtr;

/// A wrapper for a SCIP solution.

Expand All @@ -25,7 +25,12 @@ impl Solution {

/// Sets the value of a variable in the solution.
pub fn set_val(&self, var: Rc<Variable>, val: f64) {
scip_call_panic!(ffi::SCIPsetSolVal(self.scip_ptr.raw, self.raw, var.raw, val));
scip_call_panic!(ffi::SCIPsetSolVal(
self.scip_ptr.raw,
self.raw,
var.raw,
val
));
}
}

Expand Down

0 comments on commit 9fb02bc

Please sign in to comment.