Remove unnecessary explicit lifetime.
This commit is contained in:
parent
2cfb25136f
commit
487232b52d
|
|
@ -80,7 +80,7 @@ impl ExtensionType {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_name<'a>(&'a self) -> Option<&'a str> {
|
||||
pub fn get_name(&self) -> Option<&str> {
|
||||
match self {
|
||||
&ExtensionType::OtherStr(ref s) => Some(s),
|
||||
_ => None,
|
||||
|
|
|
|||
Loading…
Reference in New Issue