From def32c87ad764f5a963fd04ffa720212e68c3c65 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 13 Dec 2024 03:03:30 +0100 Subject: [PATCH] Fix various clippy lints --- acrate_database/src/meta.rs | 1 - acrate_rdserver/src/route.rs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) 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());