Skip to content

Commit

Permalink
reduce visibility on Rust KiwiVar method
Browse files Browse the repository at this point in the history
  • Loading branch information
jkl1337 committed Mar 11, 2024
1 parent 6730ddc commit c74457e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rjkiwi/src/var.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -126,6 +121,11 @@ impl KiwiVar {
}
var
}

#[inline]
pub(crate) fn value(&self) -> c_double {
self.value_.get()
}
}

pub(crate) struct SolverVariable {
Expand Down

0 comments on commit c74457e

Please sign in to comment.