Skip to content

Commit f48c161

Browse files
committed
fix(hooks): add lifetime annotations to get_handler_matcher/get_handler_condition
1 parent ee6ed26 commit f48c161

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/hooks/registry.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,7 @@ impl HookRegistry {
249249
}
250250

251251
/// Get the matcher from a handler configuration
252-
///
253-
fn get_handler_matcher(&self, handler: &HookHandlerConfig) -> Option<&HookMatcher> {
252+
fn get_handler_matcher<'a>(&self, handler: &'a HookHandlerConfig) -> Option<&'a HookMatcher> {
254253
match handler {
255254
HookHandlerConfig::Command(cmd) => cmd.matcher.as_ref(),
256255
HookHandlerConfig::Http(http) => http.matcher.as_ref(),

0 commit comments

Comments
 (0)