Skip to content

Commit

Permalink
fix: pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Sep 2, 2024
1 parent b847143 commit 664dfda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cached_enforcer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
emitter::{clear_cache, Event, EventData, EventEmitter},
enforcer::EnforceContext,
enforcer::Enforcer,
model::Model,
model::{Model, OperatorFunction},
rbac::RoleManager,
Result,
};
Expand All @@ -27,7 +27,7 @@ use crate::{error::ModelError, get_or_err};

use async_trait::async_trait;
use parking_lot::RwLock;
use rhai::{Dynamic, ImmutableString};
use rhai::{Dynamic};

use std::{collections::HashMap, sync::Arc};

Expand Down Expand Up @@ -126,7 +126,7 @@ impl CoreApi for CachedEnforcer {
fn add_function(
&mut self,
fname: &str,
f: fn(ImmutableString, ImmutableString) -> bool,
f: OperatorFunction,
) {
self.enforcer.add_function(fname, f);
}
Expand Down

0 comments on commit 664dfda

Please sign in to comment.