Use new Rust 1.9 attribute: #[deprecated].

This commit is contained in:
gwenn
2016-05-26 21:16:09 +02:00
parent 9e49452300
commit f817ec86bc
5 changed files with 12 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ use std::ops::Deref;
use {Result, Connection};
/// Old name for `TransactionBehavior`. `SqliteTransactionBehavior` is deprecated.
#[deprecated]
pub type SqliteTransactionBehavior = TransactionBehavior;
/// Options for transaction behavior. See [BEGIN
@@ -28,6 +29,7 @@ pub enum DropBehavior {
}
/// Old name for `Transaction`. `SqliteTransaction` is deprecated.
#[deprecated]
pub type SqliteTransaction<'conn> = Transaction<'conn>;
/// Represents a transaction on a database connection.