Use ToCStr trait

This commit is contained in:
John Gallagher 2015-01-05 11:15:15 -05:00
parent 5902b9106c
commit a52fedad36
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ use std::ptr;
use std::fmt; use std::fmt;
use std::rc::{Rc}; use std::rc::{Rc};
use std::cell::{RefCell, Cell}; use std::cell::{RefCell, Cell};
use std::c_str::{CString}; use std::c_str::{CString, ToCStr};
use libc::{c_int, c_void, c_char}; use libc::{c_int, c_void, c_char};
use types::{ToSql, FromSql}; use types::{ToSql, FromSql};

View File

@ -55,7 +55,7 @@
extern crate time; extern crate time;
use libc::{c_int, c_double}; use libc::{c_int, c_double};
use std::c_str::{CString}; use std::c_str::{CString, ToCStr};
use std::mem; use std::mem;
use super::ffi; use super::ffi;
use super::{SqliteResult, SqliteError}; use super::{SqliteResult, SqliteError};