diff --git a/rjkiwi/src/var.rs b/rjkiwi/src/var.rs index 83815bf..fe18699 100644 --- a/rjkiwi/src/var.rs +++ b/rjkiwi/src/var.rs @@ -109,12 +109,7 @@ impl KiwiVar { } #[inline] - pub(crate) fn value(&self) -> c_double { - self.value_.get() - } - - #[inline] - pub(crate) fn name(&self) -> String { + fn name(&self) -> String { let name = unsafe { &*self.name_.get() }; name.as_cstr().to_string_lossy().into_owned() } @@ -126,6 +121,11 @@ impl KiwiVar { } var } + + #[inline] + pub(crate) fn value(&self) -> c_double { + self.value_.get() + } } pub(crate) struct SolverVariable {