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