cleanup lifetime in find_method_info
This commit is contained in:
parent
3cd244b9fa
commit
b90dcc34bb
|
@ -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); };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue