From c74457ea34c722b83cbefedc179c54d181620b9f Mon Sep 17 00:00:00 2001 From: "John K. Luebs" Date: Mon, 11 Mar 2024 15:10:42 -0500 Subject: [PATCH] reduce visibility on Rust KiwiVar method --- rjkiwi/src/var.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 {