diff --git a/acrate_database/src/meta.rs b/acrate_database/src/meta.rs index 5444a55..2fc326e 100644 --- a/acrate_database/src/meta.rs +++ b/acrate_database/src/meta.rs @@ -28,7 +28,6 @@ use diesel::deserialize::FromSql; use diesel::{AsExpression, Associations, FromSqlRow, Identifiable, Insertable, IntoSql, PgTextExpressionMethods, QueryResult, Queryable, QueryableByName, Selectable, SelectableHelper, ExpressionMethods, BelongingToDsl}; -use diesel::dsl::insert_into; use diesel::pg::{Pg, PgConnection}; use diesel::serialize::{Output, ToSql}; use diesel_async::AsyncPgConnection; diff --git a/acrate_rdserver/src/route.rs b/acrate_rdserver/src/route.rs index 5405f20..a601283 100644 --- a/acrate_rdserver/src/route.rs +++ b/acrate_rdserver/src/route.rs @@ -8,11 +8,9 @@ use mediatype::{MediaTypeBuf, MediaTypeList}; use serde::Deserialize; use acrate_database::connect::connect_async; use acrate_database::diesel::GroupedBy; -use acrate_database::diesel_async::{AsyncConnection, AsyncPgConnection}; use acrate_database::meta::{MetaAlias, MetaLink, MetaLinkProperty, MetaLinkTitle, MetaProperty, MetaSubject}; use acrate_rd::jrd::ResourceDescriptorLinkJRD; use acrate_rd::xrd::{ResourceDescriptorLinkXRD, ResourceDescriptorPropertyXRD, ResourceDescriptorTitleXRD}; -use crate::config; pub async fn healthcheck_handler() -> Result { log::debug!("Handling an healthcheck request!"); @@ -55,7 +53,7 @@ pub async fn webfinger_handler( let accept = accept .map(|h| h.to_str()) .unwrap_or(Ok("*/*")) - .map(|h| MediaTypeList::new(h)) + .map(MediaTypeList::new) .map_err(|_| StatusCode::BAD_REQUEST)?; let mut response = Response::new("".to_string());