From 6bdc45fcd3364f05857d17325d8aeed462bef502 Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Mon, 26 Jun 2023 18:37:00 -0700 Subject: [PATCH] Thanks, clippy --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c04e090..4c8b729 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,7 +37,7 @@ pub fn create_library(conn: &mut SqliteConnection, name: &str) -> Library { .expect("Error saving new post") } -pub fn get_tag<'a>(conn: &mut SqliteConnection, tag: &'a str) -> Option { +pub fn get_tag(conn: &mut SqliteConnection, tag: &str) -> Option { use crate::schema::tags::dsl::*; tags.filter(name.eq(&tag)) .select(Tag::as_select()) @@ -52,7 +52,7 @@ pub fn list_tags(conn: &mut SqliteConnection) -> Vec { .expect("can't list tags") } -pub fn samples_with_tag<'a>(conn: &mut SqliteConnection, tag: &'a str) -> Vec { +pub fn samples_with_tag(conn: &mut SqliteConnection, tag: &str) -> Vec { let tag = get_tag(conn, tag).expect("Expected tag to exist..."); let sample_ids = SampleTag::belonging_to(&tag).select(schema::samples_tags::sample_id);