cleanup lifetime in find_method_info

This commit is contained in:
Dietmar Maurer 2018-11-01 13:54:04 +01:00
parent 3cd244b9fa
commit b90dcc34bb
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ pub static METHOD_INFO_DEFAULTS: MethodInfo = MethodInfo {
subdirs: None, 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); }; if components.len() == 0 { return Some(root); };