From 219880f3d3f492b2d28c69322842709fbb7099e9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 16 Nov 2024 07:49:12 +0100 Subject: [PATCH] `core`: Fix type mismatch --- acrate-core/src/meta.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acrate-core/src/meta.rs b/acrate-core/src/meta.rs index f4d8c60..95d479b 100644 --- a/acrate-core/src/meta.rs +++ b/acrate-core/src/meta.rs @@ -72,13 +72,13 @@ pub struct MetaProperty { } impl MetaSubject { - pub async fn query_matching(conn: &mut AsyncPgConnection, doc: &str, subject: &str) -> QueryResult> { + pub async fn query_matching(conn: &mut AsyncPgConnection, doc: &str, subject_: &str) -> QueryResult> { use diesel::prelude::*; use diesel_async::RunQueryDsl; use schema::meta_subjects::dsl::*; let document_is_equal = document.eq(doc); - let subject_matches_pattern = subject.into_sql::().ilike(pattern); + let subject_matches_pattern = subject_.into_sql::().ilike(pattern); meta_subjects .filter(document_is_equal)