Fix various clippy lints

This commit is contained in:
Steffo 2024-12-13 03:03:30 +01:00
parent 94450f5a88
commit def32c87ad
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 1 additions and 4 deletions

View file

@ -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;

View file

@ -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<StatusCode, StatusCode> {
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());