Replace pub(crate) by pub(super) visibilty

This commit is contained in:
gwenn
2020-05-16 10:18:25 +02:00
parent 65ef2224b6
commit ceb9f11de8
4 changed files with 7 additions and 7 deletions

View File

@@ -731,11 +731,11 @@ impl Drop for Statement<'_> {
}
impl Statement<'_> {
pub(crate) fn new(conn: &Connection, stmt: RawStatement) -> Statement<'_> {
pub(super) fn new(conn: &Connection, stmt: RawStatement) -> Statement<'_> {
Statement { conn, stmt }
}
pub(crate) fn value_ref(&self, col: usize) -> ValueRef<'_> {
pub(super) fn value_ref(&self, col: usize) -> ValueRef<'_> {
let raw = unsafe { self.stmt.ptr() };
match self.stmt.column_type(col) {
@@ -791,7 +791,7 @@ impl Statement<'_> {
}
}
pub(crate) fn step(&self) -> Result<bool> {
pub(super) fn step(&self) -> Result<bool> {
match self.stmt.step() {
ffi::SQLITE_ROW => Ok(true),
ffi::SQLITE_DONE => Ok(false),
@@ -799,7 +799,7 @@ impl Statement<'_> {
}
}
pub(crate) fn reset(&self) -> c_int {
pub(super) fn reset(&self) -> c_int {
self.stmt.reset()
}
}