Merge pull request #217 from jgallagher/tosqloutput-derive-traits

Derive Clone, Debug, and PartialEq on ToSqlOutput.
This commit is contained in:
John Gallagher 2017-01-26 22:27:13 -05:00 committed by GitHub
commit 186da8d9ad
3 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "rusqlite" name = "rusqlite"
version = "0.9.4" version = "0.9.5"
authors = ["John Gallagher <jgallagher@bignerdranch.com>"] authors = ["John Gallagher <jgallagher@bignerdranch.com>"]
description = "Ergonomic wrapper for SQLite" description = "Ergonomic wrapper for SQLite"
repository = "https://github.com/jgallagher/rusqlite" repository = "https://github.com/jgallagher/rusqlite"

View File

@ -1,3 +1,7 @@
# Version 0.9.5 (2017-01-26)
* Add impls of `Clone`, `Debug`, and `PartialEq` to `ToSqlOutput`.
# Version 0.9.4 (2017-01-25) # Version 0.9.4 (2017-01-25)
* Update dependencies. * Update dependencies.

View File

@ -2,6 +2,7 @@ use super::{Null, Value, ValueRef};
use ::Result; use ::Result;
/// `ToSqlOutput` represents the possible output types for implementors of the `ToSql` trait. /// `ToSqlOutput` represents the possible output types for implementors of the `ToSql` trait.
#[derive(Clone,Debug,PartialEq)]
pub enum ToSqlOutput<'a> { pub enum ToSqlOutput<'a> {
/// A borrowed SQLite-representable value. /// A borrowed SQLite-representable value.
Borrowed(ValueRef<'a>), Borrowed(ValueRef<'a>),