summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/db.rs1
-rw-r--r--src/importer.rs4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/db.rs b/src/db.rs
index ed1ce4d..cec7d56 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -7,7 +7,6 @@ use chrono::Utc;
use diesel::connection::Connection;
use diesel::pg::PgConnection;
use diesel::ExpressionMethods;
-use diesel::JoinOnDsl;
use diesel::QueryDsl;
use diesel::RunQueryDsl;
diff --git a/src/importer.rs b/src/importer.rs
index 7cbc1db..799b6bb 100644
--- a/src/importer.rs
+++ b/src/importer.rs
@@ -135,6 +135,8 @@ impl<StravaApi: strava::StravaApi> Importer<StravaApi> {
fn to_run(data: &Value) -> Result<Value, Error> {
info!("to_run");
+
+ #[allow(unused_macros)]
macro_rules! get {
($id:ident str $e:expr) => {
$id[$e]
@@ -211,7 +213,7 @@ fn process_strava_activity<S: strava::StravaApi>(
fn process_raw_data<S: strava::StravaApi>(
shared: Arc<ImporterSharedData<S>>,
key: &models::RawDataKey,
- mut task: models::Task,
+ task: models::Task,
) -> Result<(), Error> {
let data = db::get_raw_data(&shared.conn.lock().unwrap(), key)?;
match data.data_type {