From b90dcc34bb0766f2cf8d89e39855c776a0c55e8a Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 1 Nov 2018 13:54:04 +0100 Subject: [PATCH] cleanup lifetime in find_method_info --- src/api_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api_info.rs b/src/api_info.rs index eb451a99..45863f84 100644 --- a/src/api_info.rs +++ b/src/api_info.rs @@ -28,7 +28,7 @@ pub static METHOD_INFO_DEFAULTS: MethodInfo = MethodInfo { subdirs: None, }; -pub fn find_method_info(root: &'static MethodInfo, components: &[&str]) -> Option<&'static MethodInfo> { +pub fn find_method_info<'a>(root: &'a MethodInfo, components: &[&str]) -> Option<&'a MethodInfo> { if components.len() == 0 { return Some(root); };