diff --git a/src/query/fns/aggregate.rs b/src/query/fns/aggregate.rs
index 0f0410ace449ef793f70057a3b900bad126b2c74..d4b63c8d52570b5cb88e32321d9fc1ac9398f71b 100644
--- a/src/query/fns/aggregate.rs
+++ b/src/query/fns/aggregate.rs
@@ -34,7 +34,7 @@ impl<'a, F: Fn(&mut fmt::Formatter) -> fmt::Result> AggrFunc<'a, F> {
     }
 }
 
-impl<'a, F: Fn(&mut fmt::Formatter) -> fmt::Result> From<QryFunc<F>> for AggrFunc<'a, F> {
+impl<F: Fn(&mut fmt::Formatter) -> fmt::Result> From<QryFunc<F>> for AggrFunc<'_, F> {
     fn from(value: QryFunc<F>) -> Self {
         AggrFunc {
             inner: value,
@@ -133,7 +133,7 @@ pub fn count<'a>(
 pub fn count_values<'a>(
     label: &'a str,
     vec_expr: impl Operable + 'a,
-) -> AggrFunc<'_, impl Fn(&mut fmt::Formatter) -> fmt::Result + '_> {
+) -> AggrFunc<'a, impl Fn(&mut fmt::Formatter) -> fmt::Result + 'a> {
     qry_fn!(count_values, r#""{label}", {vec_expr}"#).into()
 }