From 4623064f4df193220d3be1bd06820f25d75386c0 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Mon, 29 May 2017 10:52:19 -0400 Subject: [PATCH] Update to bitflags 0.9. --- Cargo.toml | 6 +++--- src/lib.rs | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0db459f..6a163d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,13 +29,13 @@ limits = [] [dependencies] time = "0.1.0" -bitflags = "0.8" -lru-cache = "0.1.0" +bitflags = "0.9" +lru-cache = "0.1" chrono = { version = "0.3", optional = true } serde_json = { version = "1.0", optional = true } [dev-dependencies] -tempdir = "0.3.4" +tempdir = "0.3" lazy_static = "0.2" regex = "0.2" diff --git a/src/lib.rs b/src/lib.rs index a415205..32740b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -584,16 +584,16 @@ bitflags! { #[doc = "Flags for opening SQLite database connections."] #[doc = "See [sqlite3_open_v2](http://www.sqlite.org/c3ref/open.html) for details."] #[repr(C)] - pub flags OpenFlags: ::std::os::raw::c_int { - const SQLITE_OPEN_READ_ONLY = ffi::SQLITE_OPEN_READONLY, - const SQLITE_OPEN_READ_WRITE = ffi::SQLITE_OPEN_READWRITE, - const SQLITE_OPEN_CREATE = ffi::SQLITE_OPEN_CREATE, - const SQLITE_OPEN_URI = 0x00000040, - const SQLITE_OPEN_MEMORY = 0x00000080, - const SQLITE_OPEN_NO_MUTEX = ffi::SQLITE_OPEN_NOMUTEX, - const SQLITE_OPEN_FULL_MUTEX = ffi::SQLITE_OPEN_FULLMUTEX, - const SQLITE_OPEN_SHARED_CACHE = 0x00020000, - const SQLITE_OPEN_PRIVATE_CACHE = 0x00040000, + pub struct OpenFlags: ::std::os::raw::c_int { + const SQLITE_OPEN_READ_ONLY = ffi::SQLITE_OPEN_READONLY; + const SQLITE_OPEN_READ_WRITE = ffi::SQLITE_OPEN_READWRITE; + const SQLITE_OPEN_CREATE = ffi::SQLITE_OPEN_CREATE; + const SQLITE_OPEN_URI = 0x00000040; + const SQLITE_OPEN_MEMORY = 0x00000080; + const SQLITE_OPEN_NO_MUTEX = ffi::SQLITE_OPEN_NOMUTEX; + const SQLITE_OPEN_FULL_MUTEX = ffi::SQLITE_OPEN_FULLMUTEX; + const SQLITE_OPEN_SHARED_CACHE = 0x00020000; + const SQLITE_OPEN_PRIVATE_CACHE = 0x00040000; } }