summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/src/api_server.rs4
-rw-r--r--rust/src/bin/fatcatd.rs3
-rw-r--r--rust/src/lib.rs2
3 files changed, 3 insertions, 6 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index 0e7bf4bc..3b052a6c 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -491,7 +491,7 @@ impl Api for Server {
fn creator_post(
&self,
body: models::CreatorEntity,
- context: &Context,
+ _context: &Context,
) -> Box<Future<Item = CreatorPostResponse, Error = ApiError> + Send> {
//let editgroup_id: i64 = body.editgroup.expect("need editgroup_id") as i64;
// TODO: or find/create
@@ -616,7 +616,7 @@ impl Api for Server {
let conn = self.db_pool.get().expect("db_pool error");
let work_id = uuid::Uuid::parse_str(&body.work_id).expect("invalid UUID");
- let container_id: Option<uuid::Uuid> = match body.container_id {
+ let _container_id: Option<uuid::Uuid> = match body.container_id {
Some(id) => Some(uuid::Uuid::parse_str(&id).expect("invalid UUID")),
None => None,
};
diff --git a/rust/src/bin/fatcatd.rs b/rust/src/bin/fatcatd.rs
index 53df7f71..460246b5 100644
--- a/rust/src/bin/fatcatd.rs
+++ b/rust/src/bin/fatcatd.rs
@@ -9,7 +9,6 @@ extern crate fatcat_api;
extern crate futures;
extern crate iron;
extern crate iron_slog;
-#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate slog;
@@ -18,7 +17,7 @@ extern crate slog_term;
use clap::{App, Arg};
use iron::modifiers::RedirectRaw;
-use iron::{status, Chain, Iron, IronResult, Request, Response, Url};
+use iron::{status, Chain, Iron, IronResult, Request, Response};
use iron_slog::{DefaultLogFormatter, LoggerMiddleware};
use slog::{Drain, Logger};
//use dotenv::dotenv;
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index c051ee0e..37929ac8 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -1,9 +1,7 @@
-#[macro_use]
extern crate fatcat_api;
extern crate chrono;
#[macro_use]
extern crate diesel;
-#[macro_use]
extern crate diesel_migrations;
extern crate dotenv;
extern crate futures;