Add #[deriving(Copy)] as appropriate

This commit is contained in:
John Gallagher 2014-12-23 12:22:05 -05:00
parent 13fc87fe11
commit 678fd0f3a3
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ pub use SqliteTransactionBehavior::{
/// Options for transaction behavior. See [BEGIN /// Options for transaction behavior. See [BEGIN
/// TRANSACTION](http://www.sqlite.org/lang_transaction.html) for details. /// TRANSACTION](http://www.sqlite.org/lang_transaction.html) for details.
#[deriving(Copy)]
pub enum SqliteTransactionBehavior { pub enum SqliteTransactionBehavior {
SqliteTransactionDeferred, SqliteTransactionDeferred,
SqliteTransactionImmediate, SqliteTransactionImmediate,

View File

@ -141,6 +141,7 @@ impl<T: ToSql> ToSql for Option<T> {
/// conn.execute("INSERT INTO people (name) VALUES (?)", &[&Null]) /// conn.execute("INSERT INTO people (name) VALUES (?)", &[&Null])
/// } /// }
/// ``` /// ```
#[deriving(Copy)]
pub struct Null; pub struct Null;
impl ToSql for Null { impl ToSql for Null {