aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/database.rs3
-rw-r--r--src/filenames.rs5
2 files changed, 3 insertions, 5 deletions
diff --git a/src/database.rs b/src/database.rs
index 5e70ada..34fe4fd 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -1,7 +1,7 @@
use std::ops::Drop;
use std::ptr;
use std::path::Path;
-use std::ffi::{CStr, CString};
+use std::ffi::CString;
use libc;
@@ -124,6 +124,7 @@ impl Database {
})
}
+ #[cfg(feature = "0.21")]
pub fn revision(&self) -> Revision {
let uuid_p: *const libc::c_char = ptr::null();
let revision = unsafe {
diff --git a/src/filenames.rs b/src/filenames.rs
index 87a1495..d9e5bd8 100644
--- a/src/filenames.rs
+++ b/src/filenames.rs
@@ -4,10 +4,7 @@ use std::marker::PhantomData;
use std::path::PathBuf;
use std::ffi::CStr;
-use utils::{
- NewFromPtr,
-};
-
+use utils::NewFromPtr;
use Database;
use ffi;