From 9e6505a9303aea5d64d938d586d4c7954a2dd48f Mon Sep 17 00:00:00 2001 From: Nick Alexander Date: Wed, 25 Jul 2018 15:26:48 -0700 Subject: [PATCH] [sdks/android] Pre: Fix unused warnings. --- src/store.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/store.rs b/src/store.rs index de86f6da..314e0a48 100644 --- a/src/store.rs +++ b/src/store.rs @@ -41,8 +41,6 @@ use mentat_db::{ #[cfg(feature = "syncable")] use mentat_tolstoy::Syncer; -use uuid::Uuid; - use conn::{ CacheAction, CacheDirection, @@ -51,7 +49,11 @@ use conn::{ InProgressRead, Pullable, Queryable, - Syncable +}; + +#[cfg(feature = "syncable")] +use conn::{ + Syncable, }; use errors::*; @@ -238,6 +240,9 @@ impl Pullable for Store { } } +#[cfg(feature = "syncable")] +use uuid::Uuid; + #[cfg(feature = "syncable")] impl Syncable for Store { fn sync(&mut self, server_uri: &String, user_uuid: &String) -> Result<()> { @@ -266,6 +271,8 @@ mod tests { Duration, }; + use uuid::Uuid; + use mentat_db::cache::{ SQLiteAttributeCache, };