mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
Use semicolons on macros
This commit is contained in:
parent
678fd0f3a3
commit
ba1f648679
16
src/types.rs
16
src/types.rs
@ -80,11 +80,11 @@ macro_rules! raw_to_impl(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
);
|
||||||
|
|
||||||
raw_to_impl!(c_int, sqlite3_bind_int)
|
raw_to_impl!(c_int, sqlite3_bind_int);
|
||||||
raw_to_impl!(i64, sqlite3_bind_int64)
|
raw_to_impl!(i64, sqlite3_bind_int64);
|
||||||
raw_to_impl!(c_double, sqlite3_bind_double)
|
raw_to_impl!(c_double, sqlite3_bind_double);
|
||||||
|
|
||||||
impl<'a> ToSql for &'a str {
|
impl<'a> ToSql for &'a str {
|
||||||
unsafe fn bind_parameter(&self, stmt: *mut ffi::sqlite3_stmt, col: c_int) -> c_int {
|
unsafe fn bind_parameter(&self, stmt: *mut ffi::sqlite3_stmt, col: c_int) -> c_int {
|
||||||
@ -158,11 +158,11 @@ macro_rules! raw_from_impl(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
);
|
||||||
|
|
||||||
raw_from_impl!(c_int, sqlite3_column_int)
|
raw_from_impl!(c_int, sqlite3_column_int);
|
||||||
raw_from_impl!(i64, sqlite3_column_int64)
|
raw_from_impl!(i64, sqlite3_column_int64);
|
||||||
raw_from_impl!(c_double, sqlite3_column_double)
|
raw_from_impl!(c_double, sqlite3_column_double);
|
||||||
|
|
||||||
impl FromSql for String {
|
impl FromSql for String {
|
||||||
unsafe fn column_result(stmt: *mut ffi::sqlite3_stmt, col: c_int) -> SqliteResult<String> {
|
unsafe fn column_result(stmt: *mut ffi::sqlite3_stmt, col: c_int) -> SqliteResult<String> {
|
||||||
|
Loading…
Reference in New Issue
Block a user