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)