From 9fb02bc205a4af79b4199591ee9840c652672a28 Mon Sep 17 00:00:00 2001 From: Mohammed Ghannam Date: Sun, 7 Apr 2024 17:46:18 +0200 Subject: [PATCH] Cargo fmt --- src/solution.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/solution.rs b/src/solution.rs index 03b7079..312b028 100644 --- a/src/solution.rs +++ b/src/solution.rs @@ -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. @@ -25,7 +25,12 @@ impl Solution { /// Sets the value of a variable in the solution. pub fn set_val(&self, var: Rc, 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 + )); } }