diff --git a/pyproject.toml b/pyproject.toml index 363be11c95..b0da54660b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ authors = [ { name="Marisa Lim", orcid="0000-0003-2097-8818" }, { name="Ricky Lim", orcid="0000-0003-1313-7076" }, { name="Bradley Nelson", orcid="0009-0001-1553-932X" }, + { name="R. Todd Morse", orcid="0009-0007-1711-5938" }, { name="Ivan Ogasawara", orcid="0000-0001-5049-4289" }, { name="Taylor Reiter", orcid="0000-0002-7388-421X" }, { name="Camille Scott", orcid="0000-0001-8822-8779" }, diff --git a/src/core/src/index/mod.rs b/src/core/src/index/mod.rs index 45c0bc5118..1dccd8403c 100644 --- a/src/core/src/index/mod.rs +++ b/src/core/src/index/mod.rs @@ -128,7 +128,12 @@ pub trait Index<'a> { type Item: Comparable; //type SignatureIterator: Iterator; - fn find(&self, search_fn: F, sig: &Self::Item, threshold: f64) -> Result> + fn find( + &'a self, + search_fn: F, + sig: &'a Self::Item, + threshold: f64, + ) -> Result> where F: Fn(&dyn Comparable, &Self::Item, f64) -> bool, { @@ -146,8 +151,8 @@ pub trait Index<'a> { } fn search( - &self, - sig: &Self::Item, + &'a self, + sig: &'a Self::Item, threshold: f64, containment: bool, ) -> Result> {