Skip to content

Commit

Permalink
feat: Fix clippy::extra_unused_lifetimes warning in src/action.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
liulifox233 committed Jan 17, 2025
1 parent ee1b675 commit ec180d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ pub(crate) async fn load_policy(conn: &ConnectionPool) -> Result<Vec<CasbinRule>
}

#[cfg(feature = "postgres")]
pub(crate) async fn load_filtered_policy<'a>(
pub(crate) async fn load_filtered_policy(
conn: &ConnectionPool,
filter: &Filter<'_>,
) -> Result<Vec<CasbinRule>> {
Expand All @@ -654,7 +654,7 @@ pub(crate) async fn load_filtered_policy<'a>(
}

#[cfg(feature = "sqlite")]
pub(crate) async fn load_filtered_policy<'a>(
pub(crate) async fn load_filtered_policy(
conn: &ConnectionPool,
filter: &Filter<'_>,
) -> Result<Vec<CasbinRule>> {
Expand All @@ -677,7 +677,7 @@ pub(crate) async fn load_filtered_policy<'a>(
}

#[cfg(feature = "mysql")]
pub(crate) async fn load_filtered_policy<'a>(
pub(crate) async fn load_filtered_policy(
conn: &ConnectionPool,
filter: &Filter<'_>,
) -> Result<Vec<CasbinRule>> {
Expand Down

0 comments on commit ec180d8

Please sign in to comment.