mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 11:46:50 +00:00
chore: elide explicit lifetimes
This commit is contained in:
parent
c80867a994
commit
1b525b83b6
@ -46,7 +46,7 @@ pub struct OnkostarEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl OnkostarEditor {
|
impl OnkostarEditor {
|
||||||
pub fn find_property_catalogue<'a>(&'a self, name: &str) -> Option<&'a PropertyCatalogue> {
|
pub fn find_property_catalogue(&self, name: &str) -> Option<&PropertyCatalogue> {
|
||||||
match self
|
match self
|
||||||
.editor
|
.editor
|
||||||
.property_catalogue
|
.property_catalogue
|
||||||
@ -59,7 +59,7 @@ impl OnkostarEditor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn find_data_catalogue<'a>(&'a self, name: &str) -> Option<&'a DataCatalogue> {
|
pub fn find_data_catalogue(&self, name: &str) -> Option<&DataCatalogue> {
|
||||||
match self
|
match self
|
||||||
.editor
|
.editor
|
||||||
.data_catalogue
|
.data_catalogue
|
||||||
@ -72,7 +72,7 @@ impl OnkostarEditor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn find_data_form<'a>(&'a self, name: &str) -> Option<&'a DataForm> {
|
pub fn find_data_form(&self, name: &str) -> Option<&DataForm> {
|
||||||
match self
|
match self
|
||||||
.editor
|
.editor
|
||||||
.data_form
|
.data_form
|
||||||
@ -85,7 +85,7 @@ impl OnkostarEditor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn find_unterformular<'a>(&'a self, name: &str) -> Option<&'a Unterformular> {
|
pub fn find_unterformular(&self, name: &str) -> Option<&Unterformular> {
|
||||||
match self
|
match self
|
||||||
.editor
|
.editor
|
||||||
.unterformular
|
.unterformular
|
||||||
|
Loading…
x
Reference in New Issue
Block a user