fix import of from_utf8_unchecked()

This commit is contained in:
Austin Bonander 2020-03-27 20:44:05 -07:00 committed by Ryan Leckey
parent 4b51c16cce
commit 73a9155b46

View file

@ -1,11 +1,11 @@
#![allow(unsafe_code)]
use core::ptr::{null, null_mut, NonNull};
use std::collections::HashMap;
use std::ffi::CStr;
use std::os::raw::c_int;
use std::ptr;
use std::str::from_utf8_unchecked;
use libsqlite3_sys::{
sqlite3_bind_parameter_count, sqlite3_clear_bindings, sqlite3_column_count,
@ -15,13 +15,11 @@ use libsqlite3_sys::{
SQLITE_DONE, SQLITE_OK, SQLITE_PREPARE_NO_VTAB, SQLITE_PREPARE_PERSISTENT, SQLITE_ROW,
};
use crate::error::DatabaseError;
use crate::sqlite::connection::SqliteConnectionHandle;
use crate::sqlite::worker::Worker;
use crate::error::DatabaseError;
use crate::sqlite::SqliteError;
use crate::sqlite::{SqliteArguments, SqliteConnection};
use bitflags::_core::str::from_utf8_unchecked;
/// Return values from [SqliteStatement::step].
pub(super) enum Step {